Winnie-Kay commited on
Commit
d3f4b27
·
1 Parent(s): f352398

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -27
app.py CHANGED
@@ -89,30 +89,12 @@ def sentiment_analysis_model2(text):
89
 
90
  # Define the Streamlit app
91
  def app():
92
-
93
-     # Define the app title
94
-
95
-     st.title("Sentiment Analysis")
96
-
97
-
98
-
99
-
100
-     # Define the input field
101
-
102
-     text_input = st.text_input("Enter text:")
103
-
104
-
105
-
106
-
107
-     # Define the model selection dropdown
108
-
109
-     model_selection = st.selectbox("Select a model:", ["Model 1", "Model 2"])
110
-
111
-
112
-
113
-
114
-     # Perform sentiment analysis when the submit button is clicked
115
-
116
-     if st.button("Submit"):
117
-
118
-         if text_input
 
89
 
90
  # Define the Streamlit app
91
  def app():
92
+ # Define the app title
93
+ st.title("Sentiment Analysis")
94
+ # Define the input field
95
+ text_input = st.text_input("Enter text:")
96
+ # Define the model selection dropdown
97
+ model_selection = st.selectbox("Select a model:", ["Model 1", "Model 2"])
98
+ # Perform sentiment analysis when the submit button is clicked
99
+ if st.button("Submit"):
100
+ if text_input