diff --git a/run.py b/run.py index de3b944..3c5055b 100644 --- a/run.py +++ b/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