TruthLens commited on
Commit
61f4d4f
·
verified ·
1 Parent(s): 928e0f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 <strong>{label}</strong> (Confidence: {confidence:.2f}%)"
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"])