Skip to content

Commit

Permalink
Only run the Dash webserver if running locally
Browse files Browse the repository at this point in the history
  • Loading branch information
perfectly-preserved-pie committed Aug 26, 2023
1 parent d03b7ba commit 427d4c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,5 +344,6 @@ def update_button_active_state(n1, n2, n3):
return True, False, False # Default case


# Run the app
app.run_server(debug=True)
# Run the app if running locally
if __name__ == '__main__':
app.run_server(debug=True)

0 comments on commit 427d4c5

Please sign in to comment.