Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -86,4 +86,9 @@ def app():
|
|
| 86 |
|
| 87 |
# Perform sentiment analysis when the submit button is clicked
|
| 88 |
if st.button("Submit"):
|
| 89 |
-
if
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
|
| 87 |
# Perform sentiment analysis when the submit button is clicked
|
| 88 |
if st.button("Submit"):
|
| 89 |
+
if model_selection == "Model 1":
|
| 90 |
+
scores = sentiment_analysis_model1(text_input)
|
| 91 |
+
elif model_selection == "Model 2":
|
| 92 |
+
scores = sentiment_analysis_model2(text_input)
|
| 93 |
+
else:
|
| 94 |
+
st.error("Invalid model selection")
|