fix: Replace undefined TKINTER_AVAILABLE with local environment check

This commit is contained in:
Bobby Abellana (aider) 2025-02-11 11:19:55 -08:00
parent d6decf1382
commit 80d37924c2

View File

@ -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(