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 and gongy committed Jan 5, 2024
1 parent 5ebe06e commit 07695c9
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 07695c9

Please sign in to comment.