修改路由路径为predict

This commit is contained in:
jiangjiahui 2024-04-17 10:39:54 +08:00
parent 6c51d5b254
commit f99bde5679
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ def hello_world():
return jsonify({'status': {'code': 0, 'msg': 'success'}, 'data': 'hello world'})
@app.route('/image', methods=['POST'])
@app.route('/predict', methods=['POST'])
def digits_classification():
global model
if model is None: