itzjunayed commited on
Commit
9375174
·
verified ·
1 Parent(s): 1aeb2b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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('/predict', methods=['POST'])
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
- app.run(host='0.0.0.0', port=8000)
 
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)