Update app.py
Browse files
app.py
CHANGED
@@ -185,9 +185,7 @@ if st.button("Check News"):
|
|
185 |
confidence = prediction[0]['score']
|
186 |
|
187 |
# Fix classification issue
|
188 |
-
if
|
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})")
|