JeCabrera commited on
Commit
923676c
·
verified ·
1 Parent(s): 650485d

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -289,9 +289,9 @@ if prompt := st.chat_input('Describe tu producto/servicio y audiencia objetivo..
289
  # Streams in a chunk at a time
290
  for chunk in response:
291
  # Simulate stream of chunk
292
- for ch in chunk.text.split(' '):
293
- full_response += ch + ' '
294
- time.sleep(0.05) # Más rápido
295
  # Rewrites with a cursor at end
296
  message_placeholder.write(full_response + '▌')
297
  # Elimina el indicador de escritura
 
289
  # Streams in a chunk at a time
290
  for chunk in response:
291
  # Simulate stream of chunk
292
+ for ch in chunk.text: # Eliminamos el split(' ') para procesar carácter por carácter
293
+ full_response += ch
294
+ time.sleep(0.01) # Más rápido
295
  # Rewrites with a cursor at end
296
  message_placeholder.write(full_response + '▌')
297
  # Elimina el indicador de escritura