JeCabrera commited on
Commit
05b8861
·
verified ·
1 Parent(s): f17ffde

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -318,7 +318,7 @@ if st.session_state.show_examples and not st.session_state.messages:
318
  'messages': [],
319
  'current_chat_id': str(time.time()),
320
  'gemini_history': [],
321
- 'chat_title': 'Nuevo Chat' # Placeholder temporal
322
  })
323
 
324
  if st.session_state.current_chat_id not in st.session_state.chats_in_memory:
@@ -328,7 +328,6 @@ if st.session_state.show_examples and not st.session_state.messages:
328
  'title': 'Nuevo Chat'
329
  }
330
 
331
- # Generar título para ejemplos
332
  try:
333
  title_response = st.session_state.model.generate_content(
334
  f"Título para consulta de ejemplo: '{prompt_text}' (máximo 4 palabras)"
 
318
  'messages': [],
319
  'current_chat_id': str(time.time()),
320
  'gemini_history': [],
321
+ 'chat_title': 'Nuevo Chat'
322
  })
323
 
324
  if st.session_state.current_chat_id not in st.session_state.chats_in_memory:
 
328
  'title': 'Nuevo Chat'
329
  }
330
 
 
331
  try:
332
  title_response = st.session_state.model.generate_content(
333
  f"Título para consulta de ejemplo: '{prompt_text}' (máximo 4 palabras)"