AyoubChLin commited on
Commit
77aea09
·
verified ·
1 Parent(s): d250fdf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -95,10 +95,11 @@ def main():
95
  lstm_model = load_lstm_model(model_path)
96
  # Predict hate speech
97
  prediction = predict_hate_speech(input_text, lstm_model)
98
- if prediction > 0.5:
99
- st.error("Hate Speech Detected")
100
- else:
101
- st.success("No Hate Speech Detected")
 
102
  else:
103
  st.warning("Please enter some text")
104
 
 
95
  lstm_model = load_lstm_model(model_path)
96
  # Predict hate speech
97
  prediction = predict_hate_speech(input_text, lstm_model)
98
+ st.success("result : ",prediction)
99
+ #if prediction > 0.5:
100
+ # st.error("Hate Speech Detected")
101
+ #else:
102
+ # st.success("No Hate Speech Detected")
103
  else:
104
  st.warning("Please enter some text")
105