Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -182,7 +182,7 @@ def prediction(image_id_main, local_image_path, model_path):
|
|
| 182 |
|
| 183 |
return submission_det_path
|
| 184 |
|
| 185 |
-
@app.route('/
|
| 186 |
def predict():
|
| 187 |
image_id = request.form['image_id']
|
| 188 |
image_file = request.files['image']
|
|
@@ -196,5 +196,5 @@ def predict():
|
|
| 196 |
|
| 197 |
return send_file(submission_det_path, as_attachment=True)
|
| 198 |
|
| 199 |
-
if __name__ == '__main__':
|
| 200 |
-
|
|
|
|
| 182 |
|
| 183 |
return submission_det_path
|
| 184 |
|
| 185 |
+
@app.route('/', methods=['POST'])
|
| 186 |
def predict():
|
| 187 |
image_id = request.form['image_id']
|
| 188 |
image_file = request.files['image']
|
|
|
|
| 196 |
|
| 197 |
return send_file(submission_det_path, as_attachment=True)
|
| 198 |
|
| 199 |
+
# if __name__ == '__main__':
|
| 200 |
+
# app.run(host='0.0.0.0', port=8888)
|