rachman commited on
Commit
a9c99fb
·
verified ·
1 Parent(s): 54aa069

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -1
src/streamlit_app.py CHANGED
@@ -85,7 +85,7 @@ if st.button('Analyze'):
85
  processed_text = text_preprocessing(user_input)
86
  data_inf = hub_layer([processed_text])
87
  prediction = model.predict(data_inf)
88
- sentiment = "Positive" if prediction[0] > 0.5 else "Negative"
89
 
90
 
91
  # Display the result
 
85
  processed_text = text_preprocessing(user_input)
86
  data_inf = hub_layer([processed_text])
87
  prediction = model.predict(data_inf)
88
+ sentiment = "Positive" if prediction[0][0] > 0.5 else "Negative"
89
 
90
 
91
  # Display the result