Update app.py
Browse files
app.py
CHANGED
@@ -148,10 +148,9 @@ if st.button("Check News"):
|
|
148 |
confidence = prediction[0]['score']
|
149 |
|
150 |
if label == "FAKE":
|
151 |
-
st.success(f"✅ Result: This news is REAL. (Confidence: {confidence:.2f})")
|
152 |
-
else:
|
153 |
st.error(f"⚠️ Result: This news is FAKE. (Confidence: {confidence:.2f})")
|
154 |
-
|
|
|
155 |
# ---- Deepfake Image Detection Section ----
|
156 |
st.subheader("📸 Deepfake Image Detection")
|
157 |
uploaded_image = st.file_uploader("Upload an Image", type=["jpg", "png", "jpeg"])
|
|
|
148 |
confidence = prediction[0]['score']
|
149 |
|
150 |
if label == "FAKE":
|
|
|
|
|
151 |
st.error(f"⚠️ Result: This news is FAKE. (Confidence: {confidence:.2f})")
|
152 |
+
else:
|
153 |
+
st.success(f"✅ Result: This news is REAL. (Confidence: {confidence:.2f})")
|
154 |
# ---- Deepfake Image Detection Section ----
|
155 |
st.subheader("📸 Deepfake Image Detection")
|
156 |
uploaded_image = st.file_uploader("Upload an Image", type=["jpg", "png", "jpeg"])
|