rohithk-03 commited on
Commit
b500916
·
1 Parent(s): 357c490

update return msg

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- if file not in request.files:
 
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