From 80d37924c246b53355407e7905269bd169a124f7 Mon Sep 17 00:00:00 2001 From: "Bobby Abellana (aider)" Date: Tue, 11 Feb 2025 11:19:55 -0800 Subject: [PATCH] fix: Replace undefined TKINTER_AVAILABLE with local environment check --- src/streamlit_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/streamlit_app.py b/src/streamlit_app.py index 4c87624..2ad50ac 100644 --- a/src/streamlit_app.py +++ b/src/streamlit_app.py @@ -19,7 +19,7 @@ from main import ( def is_running_locally(): """Check if the app is running locally or in cloud environment""" - return TKINTER_AVAILABLE + return os.environ.get('STREAMLIT_SERVER_ADDRESS', '').startswith('localhost') # Configure page st.set_page_config(