Clone77 commited on
Commit
095b42c
·
verified ·
1 Parent(s): 28ec728

Update pages/statistics.py

Browse files
Files changed (1) hide show
  1. pages/statistics.py +4 -2
pages/statistics.py CHANGED
@@ -45,8 +45,10 @@ deep_seek = ChatHuggingFace(
45
  )
46
 
47
  # --- Session State ---
48
- if "chat_history" not in st.session_state:
49
- st.session_state.chat_history = []
 
 
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"):