From 319635e9b20eb27f15d7aab8a9dc83c2b0c2d63e Mon Sep 17 00:00:00 2001 From: zhaojinghao Date: Fri, 9 Dec 2022 18:43:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9response?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/run.py b/run.py index 8f859bd..9094aa5 100644 --- a/run.py +++ b/run.py @@ -6,13 +6,12 @@ import json from logzero import logger import io -# from house_price.house_price_predcition import run_boston_price -# from ocean_wave.wave_height_mlp import predict_wave_height +from house_price.house_price_predcition import run_boston_price +from ocean_wave.wave_height_mlp import predict_wave_height from prophet_predict.prophet_predict import run_prophet TEXT = "text" app = Flask(__name__) -''' @app.route('/house_price/', methods=["POST"]) def predict_price(): @@ -112,7 +111,7 @@ def predict_height(): resp = make_response(json.dumps(resp_info)) resp.status_code = 200 return resp -''' + @app.route("/prophet/", methods=["POST"]) def run_ts_predict():