From 427d4c5bdb72797f2ac5b1a7300ce03d934e6b8b Mon Sep 17 00:00:00 2001 From: Sahib Bhai Date: Sat, 26 Aug 2023 10:19:11 -0700 Subject: [PATCH] Only run the Dash webserver if running locally --- app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 3fe8ee6..313c699 100644 --- a/app.py +++ b/app.py @@ -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) \ No newline at end of file +# Run the app if running locally +if __name__ == '__main__': + app.run_server(debug=True) \ No newline at end of file