修改response
This commit is contained in:
parent
08013b7628
commit
8ab8c3e38d
2
run.py
2
run.py
|
@ -64,7 +64,7 @@ def predict_price():
|
|||
resp.headers["Content-Disposition"] = "attachment; filename*=utf-8''{}".format("house_price.xlsx")
|
||||
resp.headers["Content-type"] = "application/x-xlsx"
|
||||
else:
|
||||
resp = make_response(resp_info)
|
||||
resp = make_response(json.dumps(resp_info))
|
||||
resp.status_code = 200
|
||||
return resp
|
||||
|
||||
|
|
Loading…
Reference in New Issue