Anne31415 commited on
Commit
418fb78
·
verified ·
1 Parent(s): ac83559

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -230,11 +230,13 @@ def save_conversation(chat_histories, session_id):
230
  st.error(f"Error during Git operations: {e}")
231
 
232
  # Combine chat histories from all pages
 
233
  all_chat_histories = [
234
- st.session_state['chat_history_page1'],
235
- st.session_state['chat_history_page2'],
236
- st.session_state['chat_history_page3']
237
- ]
 
238
 
239
  def page1():
240
  try:
 
230
  st.error(f"Error during Git operations: {e}")
231
 
232
  # Combine chat histories from all pages
233
+ def combine_chat_histories(all_chat_histories)
234
  all_chat_histories = [
235
+ st.session_state['chat_history_page1'],
236
+ st.session_state['chat_history_page2'],
237
+ st.session_state['chat_history_page3']
238
+ ]
239
+ return all_chat_histories
240
 
241
  def page1():
242
  try: