saisi commited on
Commit
306ae86
·
1 Parent(s): 3cf7d5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
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 text_input
 
 
 
 
 
 
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")