RageCoder2006 commited on
Commit
648a940
·
verified ·
1 Parent(s): 55309fa

update display values

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -245,7 +245,7 @@ def predict():
245
  prob, img_features = calibrate_output(image, raw_ensemble_score)
246
 
247
  label = "AI" if prob >= 0.75 else "Real"
248
- confidence = prob if label == "AI" else None
249
 
250
  return jsonify({
251
  "label": label,
 
245
  prob, img_features = calibrate_output(image, raw_ensemble_score)
246
 
247
  label = "AI" if prob >= 0.75 else "Real"
248
+ confidence = prob if label == "AI" else ""
249
 
250
  return jsonify({
251
  "label": label,