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

update return msg

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -216,10 +216,10 @@ def generate_report():
216
 
217
  @app.route("/ms-detection", methods=["POST"])
218
  def predict():
 
219
  if file not in request.files:
220
  return jsonify({"error": "file not uploaded"}), 400
221
 
222
- file = request.files["file"]
223
  # Save file temporarily
224
  temp_path = os.path.join(tempfile.gettempdir(), file.filename)
225
  file.save(temp_path)
 
216
 
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
224
  temp_path = os.path.join(tempfile.gettempdir(), file.filename)
225
  file.save(temp_path)