修改路由路径为predict
This commit is contained in:
parent
6c51d5b254
commit
f99bde5679
|
@ -38,7 +38,7 @@ def hello_world():
|
||||||
return jsonify({'status': {'code': 0, 'msg': 'success'}, 'data': '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():
|
def digits_classification():
|
||||||
global model
|
global model
|
||||||
if model is None:
|
if model is None:
|
||||||
|
|
Loading…
Reference in New Issue