JasonTPhillipsJr commited on
Commit
aafb64e
·
verified ·
1 Parent(s): 27b4c27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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(prediction == 0):
300
- st.write("Prediction: Not Spam")
301
- elif(prediction == 1):
302
- st.write("Prediction: Spam")
303
  else:
304
- st.write("error during prediction")
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.")