ibraheem007 commited on
Commit
6a7f44a
·
verified ·
1 Parent(s): 672354b

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. 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
- try:
61
- from db.connection import init_db
62
- init_db()
63
- except Exception as e:
64
- st.error(f"❌ Database initialization failed: {e}")
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