Update app.py
Browse files
app.py
CHANGED
@@ -92,7 +92,7 @@ def detect():
|
|
92 |
label = "REAL" if result['label'].lower() in ["real", "label_1", "neutral"] else "FAKE"
|
93 |
confidence = result['score'] * 100
|
94 |
|
95 |
-
prediction_text = f"News is
|
96 |
return render_template_string(HTML_TEMPLATE, news_prediction=prediction_text)
|
97 |
|
98 |
@app.route("/detect_image", methods=["POST"])
|
|
|
92 |
label = "REAL" if result['label'].lower() in ["real", "label_1", "neutral"] else "FAKE"
|
93 |
confidence = result['score'] * 100
|
94 |
|
95 |
+
prediction_text = f"News is {label} (Confidence: {confidence:.2f}%)"
|
96 |
return render_template_string(HTML_TEMPLATE, news_prediction=prediction_text)
|
97 |
|
98 |
@app.route("/detect_image", methods=["POST"])
|