修改response

This commit is contained in:
zhaojinghao 2022-12-09 11:45:38 +08:00
parent 08013b7628
commit 8ab8c3e38d
1 changed files with 1 additions and 1 deletions

2
run.py
View File

@ -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