From 15aa5a467a426d91690b533c83b699f4e945bfa8 Mon Sep 17 00:00:00 2001 From: zhaojinghao Date: Fri, 9 Dec 2022 11:45:56 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.py b/run.py index 3c5055b..53f02a2 100644 --- a/run.py +++ b/run.py @@ -149,7 +149,7 @@ def run_ts_predict(): resp.headers["Content-Disposition"] = "attachment; filename*=utf-8''{}".format(file_name) 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