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():