rairo commited on
Commit
836e7ab
·
verified ·
1 Parent(s): b9ded2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -242,6 +242,7 @@ def main():
242
  if "data" not in st.session_state:
243
  st.session_state.data = load_data()
244
 
 
245
  # Create tabs
246
  tab_dashboard, tab_chat, tab_reports = st.tabs(["📊 Dashboard", "💬 Chat", "📈 Reports"])
247
 
@@ -264,7 +265,7 @@ def main():
264
  # Chat input
265
  user_question = st.chat_input("Ask a question about your data:")
266
  if user_question:
267
- handle_userinput(user_question, st.session_state.dfs)
268
  # Update chat container immediately after processing the input
269
  chat_container.empty()
270
  with chat_container:
 
242
  if "data" not in st.session_state:
243
  st.session_state.data = load_data()
244
 
245
+
246
  # Create tabs
247
  tab_dashboard, tab_chat, tab_reports = st.tabs(["📊 Dashboard", "💬 Chat", "📈 Reports"])
248
 
 
265
  # Chat input
266
  user_question = st.chat_input("Ask a question about your data:")
267
  if user_question:
268
+ handle_userinput(user_question, st.session_state.data)
269
  # Update chat container immediately after processing the input
270
  chat_container.empty()
271
  with chat_container: