From f99bde5679756f28c4b9c42a402d4fdbfa94aaa6 Mon Sep 17 00:00:00 2001 From: jiangjiahui Date: Wed, 17 Apr 2024 10:39:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B7=AF=E7=94=B1=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E4=B8=BApredict?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- serving/serving.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serving/serving.py b/serving/serving.py index c809fa9..bd16a62 100644 --- a/serving/serving.py +++ b/serving/serving.py @@ -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: