Clone77 commited on
Commit
5d21289
·
verified ·
1 Parent(s): bbd2d83

Update pages/statistics.py

Browse files
Files changed (1) hide show
  1. pages/statistics.py +2 -2
pages/statistics.py CHANGED
@@ -67,11 +67,11 @@ if submit and user_input:
67
  result = deep_seek.invoke(messages)
68
 
69
  # Append to history
70
- st.session_state.chat_history.append((user_input, result.content))
71
 
72
  # --- Display Chat History ---
73
  st.subheader("🗨️ Chat History")
74
- for i, (user, bot) in enumerate(st.session_state.chat_history):
75
  st.markdown(f"**You:** {user}")
76
  st.markdown(f"**Mentor:** {bot}")
77
  st.markdown("---")
 
67
  result = deep_seek.invoke(messages)
68
 
69
  # Append to history
70
+ st.session_state[PAGE_KEY].append((user_input, result.content))
71
 
72
  # --- Display Chat History ---
73
  st.subheader("🗨️ Chat History")
74
+ for user, bot in st.session_state[PAGE_KEY]:
75
  st.markdown(f"**You:** {user}")
76
  st.markdown(f"**Mentor:** {bot}")
77
  st.markdown("---")