efeperro commited on
Commit
b35dedb
β€’
1 Parent(s): 295fdd2

Update app.py

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