Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ with st.expander("Model 1: SGD Classifier"):
|
|
69 |
user_input = st.text_area("Enter text here...", key='model1_input')
|
70 |
if st.button('Analyze', key='model1_button'):
|
71 |
# Displaying output
|
72 |
-
result = predict_sentiment(user_input, model_1)
|
73 |
if result >= 0.5:
|
74 |
st.write('The sentiment is: Positive π', key='model1_poswrite')
|
75 |
else:
|
|
|
69 |
user_input = st.text_area("Enter text here...", key='model1_input')
|
70 |
if st.button('Analyze', key='model1_button'):
|
71 |
# Displaying output
|
72 |
+
result = predict_sentiment(user_input, model_1, vocab)
|
73 |
if result >= 0.5:
|
74 |
st.write('The sentiment is: Positive π', key='model1_poswrite')
|
75 |
else:
|