asad231 commited on
Commit
907d5b8
·
verified ·
1 Parent(s): cad98e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -185,9 +185,7 @@ if st.button("Check News"):
185
  confidence = prediction[0]['score']
186
 
187
  # Fix classification issue
188
- if confidence < 0.5:
189
- st.warning(f"⚠️ Unable to classify with high confidence. Please verify manually. (Confidence: {confidence:.2f})")
190
- elif label in ["fake", "false", "negative"]:
191
  st.error(f"⚠️ Result: This news is **FAKE**. (Confidence: {confidence:.2f})")
192
  else:
193
  st.success(f"✅ Result: This news is **REAL**. (Confidence: {confidence:.2f})")
 
185
  confidence = prediction[0]['score']
186
 
187
  # Fix classification issue
188
+ if label in ["fake", "false", "negative"]:
 
 
189
  st.error(f"⚠️ Result: This news is **FAKE**. (Confidence: {confidence:.2f})")
190
  else:
191
  st.success(f"✅ Result: This news is **REAL**. (Confidence: {confidence:.2f})")