Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -387,7 +387,11 @@ if prompt := st.chat_input('¿En qué puedo ayudarte hoy?'):
|
|
387 |
is_first_message = len(st.session_state.messages) == 0
|
388 |
|
389 |
if st.session_state.current_chat_id not in st.session_state.chats_in_memory:
|
390 |
-
|
|
|
|
|
|
|
|
|
391 |
|
392 |
add_message('user', prompt, USER_AVATAR_ICON)
|
393 |
with st.chat_message('user', avatar=USER_AVATAR_ICON):
|
|
|
387 |
is_first_message = len(st.session_state.messages) == 0
|
388 |
|
389 |
if st.session_state.current_chat_id not in st.session_state.chats_in_memory:
|
390 |
+
st.session_state.chats_in_memory[st.session_state.current_chat_id] = {
|
391 |
+
'messages': [],
|
392 |
+
'gemini_history': [],
|
393 |
+
'title': 'Nuevo Chat'
|
394 |
+
}
|
395 |
|
396 |
add_message('user', prompt, USER_AVATAR_ICON)
|
397 |
with st.chat_message('user', avatar=USER_AVATAR_ICON):
|