Spaces:
Running
Running
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +6 -8
src/streamlit_app.py
CHANGED
|
@@ -56,14 +56,12 @@ def scroll_to_top():
|
|
| 56 |
""", height=0)
|
| 57 |
|
| 58 |
def main():
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
st.stop()
|
| 66 |
-
|
| 67 |
# Initialize session state
|
| 68 |
initialize_session_state()
|
| 69 |
|
|
|
|
| 56 |
""", height=0)
|
| 57 |
|
| 58 |
def main():
|
| 59 |
+
# REMOVED: Manual database initialization (it happens automatically in connection.py)
|
| 60 |
+
# Just check if database is available and show warning if not
|
| 61 |
+
from db.connection import is_database_available
|
| 62 |
+
if not is_database_available():
|
| 63 |
+
st.warning("⚠️ Running without database - history and user data won't be saved")
|
| 64 |
+
|
|
|
|
|
|
|
| 65 |
# Initialize session state
|
| 66 |
initialize_session_state()
|
| 67 |
|