Tuyet3005 commited on
Commit
febe13d
1 Parent(s): 61b1f02

Update streamlit_app.py/pages/SentimentDetection.py

Browse files
streamlit_app.py/pages/SentimentDetection.py CHANGED
@@ -93,11 +93,7 @@ def main():
93
  # Create a prediction button
94
  if st.button("Analyze Spam Detection Result"):
95
  prediction = predict(contents)
96
-
97
- if prediction < 0.5:
98
- st.success(prediction)
99
- elif prediction > 0.5:
100
- st.success(prediction)
101
 
102
 
103
  if __name__ == "__main__":
 
93
  # Create a prediction button
94
  if st.button("Analyze Spam Detection Result"):
95
  prediction = predict(contents)
96
+ st.success(prediction)
 
 
 
 
97
 
98
 
99
  if __name__ == "__main__":