Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
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
|