From 6e540ce2be0e555f3d395b02f00a3e2318bf8dbf Mon Sep 17 00:00:00 2001 From: xming521 <1223398803@qq.com> Date: Thu, 9 Apr 2020 09:21:46 +0800 Subject: [PATCH] upload train code --- CTAI_flask/app.py | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/CTAI_flask/app.py b/CTAI_flask/app.py index f491dad..b5fa289 100644 --- a/CTAI_flask/app.py +++ b/CTAI_flask/app.py @@ -54,17 +54,13 @@ def upload_file(): image_path = os.path.join('./tmp/ct', file.filename) # print(image_path) pid, image_info = core.main.c_main(image_path, current_app.model) - # return jsonify({'status': 1, - # 'image_url': 'http://127.0.0.1:5003/tmp/image/' + pid, - # 'draw_url': 'http://127.0.0.1:5003/tmp/draw/' + pid, - # 'image_info': image_info - # }) - return jsonify({'status': 1, - 'image_url': 'http://58.87.66.50:5003/tmp/image/' + pid, - 'draw_url': 'http://58.87.66.50:5003/tmp/draw/' + pid, - 'image_info': image_info - }) + 'image_url': 'http://127.0.0.1:5003/tmp/image/' + pid, + 'draw_url': 'http://127.0.0.1:5003/tmp/draw/' + pid, + 'image_info': image_info + }) + + return jsonify({'status': 0})