Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- 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 ⚠️")
|