Spaces:
Runtime error
Runtime error
benliang99
commited on
Commit
•
700e4e1
1
Parent(s):
5a40ca9
fixed user input var
Browse files
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(
|
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'])
|