修改response
This commit is contained in:
parent
4f101eec52
commit
319635e9b2
7
run.py
7
run.py
|
@ -6,13 +6,12 @@ import json
|
||||||
from logzero import logger
|
from logzero import logger
|
||||||
|
|
||||||
import io
|
import io
|
||||||
# from house_price.house_price_predcition import run_boston_price
|
from house_price.house_price_predcition import run_boston_price
|
||||||
# from ocean_wave.wave_height_mlp import predict_wave_height
|
from ocean_wave.wave_height_mlp import predict_wave_height
|
||||||
from prophet_predict.prophet_predict import run_prophet
|
from prophet_predict.prophet_predict import run_prophet
|
||||||
|
|
||||||
TEXT = "text"
|
TEXT = "text"
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
'''
|
|
||||||
|
|
||||||
@app.route('/house_price/', methods=["POST"])
|
@app.route('/house_price/', methods=["POST"])
|
||||||
def predict_price():
|
def predict_price():
|
||||||
|
@ -112,7 +111,7 @@ def predict_height():
|
||||||
resp = make_response(json.dumps(resp_info))
|
resp = make_response(json.dumps(resp_info))
|
||||||
resp.status_code = 200
|
resp.status_code = 200
|
||||||
return resp
|
return resp
|
||||||
'''
|
|
||||||
|
|
||||||
@app.route("/prophet/", methods=["POST"])
|
@app.route("/prophet/", methods=["POST"])
|
||||||
def run_ts_predict():
|
def run_ts_predict():
|
||||||
|
|
Loading…
Reference in New Issue