Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ with st.expander("Model 1: SGD Classifier"):
|
|
46 |
st.markdown("Give it a go by writing a positive or negative text, and analyze it!")
|
47 |
|
48 |
# Text input inside the expander
|
49 |
-
user_input = st.text_area("Enter text here...")
|
50 |
if st.button('Analyze'):
|
51 |
# Displaying output
|
52 |
result = predict_sentiment(user_input, model_1)
|
@@ -59,7 +59,7 @@ with st.expander("Model 2: CNN Sentiment analysis"):
|
|
59 |
st.markdown("Give it a go by writing a positive or negative text, and analyze it!")
|
60 |
|
61 |
# Text input inside the expander
|
62 |
-
user_input = st.text_area("Enter text here...")
|
63 |
if st.button('Analyze'):
|
64 |
# Displaying output
|
65 |
result = predict_sentiment(user_input, model_2)
|
|
|
46 |
st.markdown("Give it a go by writing a positive or negative text, and analyze it!")
|
47 |
|
48 |
# Text input inside the expander
|
49 |
+
user_input = st.text_area("Enter text here...", key='model1_input')
|
50 |
if st.button('Analyze'):
|
51 |
# Displaying output
|
52 |
result = predict_sentiment(user_input, model_1)
|
|
|
59 |
st.markdown("Give it a go by writing a positive or negative text, and analyze it!")
|
60 |
|
61 |
# Text input inside the expander
|
62 |
+
user_input = st.text_area("Enter text here...", key='model2_input')
|
63 |
if st.button('Analyze'):
|
64 |
# Displaying output
|
65 |
result = predict_sentiment(user_input, model_2)
|