镜像自地址
https://github.com/xming521/CTAI.git
已同步 2025-12-06 14:46:48 +00:00
upload train code
这个提交包含在:
@@ -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})
|
||||
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户