Spaces:
Sleeping
Sleeping
Update
Browse files
app.py
CHANGED
@@ -97,14 +97,14 @@ def predict():
|
|
97 |
|
98 |
if pred_label == 1:
|
99 |
return jsonify({
|
100 |
-
"prediction": "
|
101 |
-
"message": "Image is
|
102 |
"image_url": url_for("static", filename=f"uploads/{file.filename}")
|
103 |
})
|
104 |
else:
|
105 |
return jsonify({
|
106 |
-
"prediction": "
|
107 |
-
"message": "Image is
|
108 |
"image_url": url_for("static", filename=f"uploads/{file.filename}")
|
109 |
})
|
110 |
|
|
|
97 |
|
98 |
if pred_label == 1:
|
99 |
return jsonify({
|
100 |
+
"prediction": "Fake",
|
101 |
+
"message": "Image is fake, but type (Deepfake/Cheapfake) not determined in this mode.",
|
102 |
"image_url": url_for("static", filename=f"uploads/{file.filename}")
|
103 |
})
|
104 |
else:
|
105 |
return jsonify({
|
106 |
+
"prediction": "Real",
|
107 |
+
"message": "Image is authentic. No further processing.",
|
108 |
"image_url": url_for("static", filename=f"uploads/{file.filename}")
|
109 |
})
|
110 |
|