Spaces:
Sleeping
Sleeping
Update pages/statistics.py
Browse files- pages/statistics.py +4 -2
pages/statistics.py
CHANGED
|
@@ -45,8 +45,10 @@ deep_seek = ChatHuggingFace(
|
|
| 45 |
)
|
| 46 |
|
| 47 |
# --- Session State ---
|
| 48 |
-
|
| 49 |
-
|
|
|
|
|
|
|
| 50 |
|
| 51 |
# --- Chat Form ---
|
| 52 |
with st.form(key="chat_form"):
|
|
|
|
| 45 |
)
|
| 46 |
|
| 47 |
# --- Session State ---
|
| 48 |
+
PAGE_KEY = "statistics_chat_history"
|
| 49 |
+
# --- Session State ---
|
| 50 |
+
if PAGE_KEY not in st.session_state:
|
| 51 |
+
st.session_state[PAGE_KEY] = []
|
| 52 |
|
| 53 |
# --- Chat Form ---
|
| 54 |
with st.form(key="chat_form"):
|