JeCabrera commited on
Commit
3b2c339
·
verified ·
1 Parent(s): 6d5589e

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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
- # ... existing code for title generation ...
 
 
 
 
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):