Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -296,12 +296,12 @@ if st.button("Process Review"):
|
|
| 296 |
st.write("Pseudo-Sentence:", clean_sentence)
|
| 297 |
|
| 298 |
#Display the models prediction
|
| 299 |
-
if
|
| 300 |
-
st.
|
| 301 |
-
elif
|
| 302 |
-
st.
|
| 303 |
else:
|
| 304 |
-
st.
|
| 305 |
|
| 306 |
else:
|
| 307 |
st.error("Please select a review.")
|
|
|
|
| 296 |
st.write("Pseudo-Sentence:", clean_sentence)
|
| 297 |
|
| 298 |
#Display the models prediction
|
| 299 |
+
if prediction == 0:
|
| 300 |
+
st.markdown("<h3 style='color:green;'>✅ Prediction: Not Spam</h3>", unsafe_allow_html=True)
|
| 301 |
+
elif prediction == 1:
|
| 302 |
+
st.markdown("<h3 style='color:red;'>❌ Prediction: Spam</h3>", unsafe_allow_html=True)
|
| 303 |
else:
|
| 304 |
+
st.markdown("<h3 style='color:orange;'>⚠️ Error during prediction</h3>", unsafe_allow_html=True)
|
| 305 |
|
| 306 |
else:
|
| 307 |
st.error("Please select a review.")
|