Spaces:
Sleeping
Sleeping
Update pages/statistics.py
Browse files- 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.
|
| 71 |
|
| 72 |
# --- Display Chat History ---
|
| 73 |
st.subheader("🗨️ Chat History")
|
| 74 |
-
for
|
| 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("---")
|