clezcano commited on
Commit
1493176
1 Parent(s): 4014116

Add application file1

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ user_input = st.text_area("Enter your text:")
12
 
13
 
14
  # Define a function for sentiment analysis using transformers
15
- @st.cache(allow_output_mutation=True)
16
  def load_model():
17
  return pipeline("sentiment-analysis")
18
 
 
12
 
13
 
14
  # Define a function for sentiment analysis using transformers
15
+ @st.cache_data
16
  def load_model():
17
  return pipeline("sentiment-analysis")
18