BeyzaTopbas commited on
Commit
1d5bf63
·
verified ·
1 Parent(s): 1e382ef

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +3 -1
src/streamlit_app.py CHANGED
@@ -36,4 +36,6 @@ if st.button("Predict"):
36
  if prediction == "REAL":
37
  st.success(f"Real News ✅ ({confidence:.2%})")
38
  else:
39
- st.error(f"Fake News ❌ ({confidence:.2%})")
 
 
 
36
  if prediction == "REAL":
37
  st.success(f"Real News ✅ ({confidence:.2%})")
38
  else:
39
+ st.error(f"Fake News ❌ ({confidence:.2%})")
40
+ if confidence < 0.65:
41
+ st.warning("Low confidence prediction ⚠️")