Spaces:
Running
Running
Upload app.py
Browse files
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
|
293 |
-
full_response += ch
|
294 |
-
time.sleep(0.
|
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
|