lifewjola commited on
Commit
655c99a
·
1 Parent(s): 5ab99f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -94,6 +94,6 @@ input_text = st.text_input("Enter a news headline:")
94
  if input_text:
95
  prediction = predict_sarcasm(input_text)
96
  if prediction >= 0.5:
97
- st.write(f"This headline is sarcastic with a score: {prediction*100:.2f}%")
98
  else:
99
- st.write(f"This headline is not sarcastic with a score: {prediction*100:.2f}%")
 
94
  if input_text:
95
  prediction = predict_sarcasm(input_text)
96
  if prediction >= 0.5:
97
+ st.write(f"This headline is sarcastic. \nscore: {prediction*100:.2f}%")
98
  else:
99
+ st.write(f"This headline is not sarcastic. \nscore: {prediction*100:.2f}%")