From 07695c9f3987a09ce509f4b988fe6b2cba250571 Mon Sep 17 00:00:00 2001 From: Eric Zhang Date: Fri, 13 Oct 2023 12:41:22 -0400 Subject: [PATCH] Update flask_streaming.py to use .local() (#464) --- 07_web_endpoints/flask_streaming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/07_web_endpoints/flask_streaming.py b/07_web_endpoints/flask_streaming.py index 01a2a0964..c44631d07 100644 --- a/07_web_endpoints/flask_streaming.py +++ b/07_web_endpoints/flask_streaming.py @@ -35,7 +35,7 @@ def flask_app(): @web_app.route("/") def generate_large_csv(): # Run the function locally in the web app's container. - return generate_rows(), {"Content-Type": "text/csv"} + return generate_rows.local(), {"Content-Type": "text/csv"} @web_app.route("/remote") def generate_large_csv_in_container():