Skip to content

Commit

Permalink
Update flask_streaming.py to use .local() (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzhang authored Oct 13, 2023
1 parent 79ac909 commit 4d3e84f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 07_web_endpoints/flask_streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 4d3e84f

Please sign in to comment.