Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -118,7 +118,7 @@ if prompt := st.chat_input('¿En qué puedo ayudarte hoy?'): # Mensaje más ami
|
|
118 |
# TODO: Chunk missing `text` if API stops mid-stream ("safety"?)
|
119 |
for ch in chunk.text.split(' '):
|
120 |
full_response += ch + ' '
|
121 |
-
time.sleep(0.05
|
122 |
# Rewrites with a cursor at end
|
123 |
message_placeholder.write(full_response + '▌')
|
124 |
# Elimina el indicador de escritura
|
|
|
118 |
# TODO: Chunk missing `text` if API stops mid-stream ("safety"?)
|
119 |
for ch in chunk.text.split(' '):
|
120 |
full_response += ch + ' '
|
121 |
+
time.sleep(0.1) # Aumentado de 0.05 a 0.1 segundos para una velocidad más lenta
|
122 |
# Rewrites with a cursor at end
|
123 |
message_placeholder.write(full_response + '▌')
|
124 |
# Elimina el indicador de escritura
|