JeCabrera commited on
Commit
73dd8ce
verified
1 Parent(s): 1781efb

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -198,6 +198,13 @@ try:
198
  except:
199
  past_chats = {}
200
 
 
 
 
 
 
 
 
201
  # Sidebar allows a list of past chats
202
  with st.sidebar:
203
  # Centrar el logo y eliminar el t铆tulo de RoboCopy
 
198
  except:
199
  past_chats = {}
200
 
201
+ # Inicializaci贸n del estado de sesi贸n
202
+ if 'chats_in_memory' not in st.session_state:
203
+ st.session_state.chats_in_memory = {}
204
+
205
+ if 'current_chat_id' not in st.session_state:
206
+ st.session_state.current_chat_id = new_chat_id
207
+
208
  # Sidebar allows a list of past chats
209
  with st.sidebar:
210
  # Centrar el logo y eliminar el t铆tulo de RoboCopy