fix: Replace undefined TKINTER_AVAILABLE with local environment check
This commit is contained in:
parent
d6decf1382
commit
80d37924c2
@ -19,7 +19,7 @@ from main import (
|
|||||||
|
|
||||||
def is_running_locally():
|
def is_running_locally():
|
||||||
"""Check if the app is running locally or in cloud environment"""
|
"""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
|
# Configure page
|
||||||
st.set_page_config(
|
st.set_page_config(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user