Spaces:
Runtime error
Runtime error
rohithk-03 commited on
Commit ·
b500916
1
Parent(s): 357c490
update return msg
Browse files
app.py
CHANGED
|
@@ -217,7 +217,8 @@ def generate_report():
|
|
| 217 |
@app.route("/ms-detection", methods=["POST"])
|
| 218 |
def predict():
|
| 219 |
file = request.files["file"]
|
| 220 |
-
|
|
|
|
| 221 |
return jsonify({"error": "file not uploaded"}), 400
|
| 222 |
|
| 223 |
# Save file temporarily
|
|
|
|
| 217 |
@app.route("/ms-detection", methods=["POST"])
|
| 218 |
def predict():
|
| 219 |
file = request.files["file"]
|
| 220 |
+
|
| 221 |
+
if not file :
|
| 222 |
return jsonify({"error": "file not uploaded"}), 400
|
| 223 |
|
| 224 |
# Save file temporarily
|