benliang99 commited on
Commit
700e4e1
1 Parent(s): 5a40ca9

fixed user input var

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ dropdown_value = st.selectbox('Select one of the following sentiment analysis mo
45
  model, tokenizer = load_model(dropdown_value)
46
 
47
  # Perform sentiment analysis on the user's input
48
- result = sentiment_analysis(text_input)
49
 
50
  # Display the sentiment analysis results
51
  st.write('Sentiment:', result[0]['label'], '; Score:', result[0]['score'])
 
45
  model, tokenizer = load_model(dropdown_value)
46
 
47
  # Perform sentiment analysis on the user's input
48
+ result = sentiment_analysis(user_text)
49
 
50
  # Display the sentiment analysis results
51
  st.write('Sentiment:', result[0]['label'], '; Score:', result[0]['score'])