Update app.py
Browse files
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
|
98 |
else:
|
99 |
-
st.write(f"This headline is not sarcastic
|
|
|
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}%")
|