rohithk-03 commited on
Commit
836fb68
·
1 Parent(s): 21f6d56

update return msg

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -19,7 +19,7 @@ from a import main
19
  # Initialize Flask app
20
  app = Flask(__name__)
21
 
22
- GDRIVE_MODEL_URL = "https://drive.google.com/file/d/1fzKneepaRt_--dzamTcDBM-9d3_dLX7z"
23
  LOCAL_MODEL_PATH = "checkpoint32.pth"
24
 
25
 
@@ -217,8 +217,8 @@ def generate_report():
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
 
19
  # Initialize Flask app
20
  app = Flask(__name__)
21
 
22
+ GDRIVE_MODEL_URL = "https://drive.google.com/file/d/1fzKneepaRt_--dzamTcDBM-9d3_dLX7z/view?usp=sharing"
23
  LOCAL_MODEL_PATH = "checkpoint32.pth"
24
 
25
 
 
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