Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aitilabs authored Sep 2, 2023
1 parent 1d53284 commit 2ed922f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cloudrun-app/application-files/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import os

app = Flask(__name__)

client = bigquery.Client()

@app.route('/')
Expand All @@ -25,4 +26,4 @@ def main(big_query_client=client):
return {"data": destination_table.num_rows}

if __name__ == "__main__":
app.run(debug=True, host="0.0.0.0", port=int(os.environ.get("PORT", 5052)))
app.run(debug=True, host="0.0.0.0", port=int(os.environ.get("PORT", 5052)))

0 comments on commit 2ed922f

Please sign in to comment.