Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def apply_fade_in_effect():
|
|
21 |
to { opacity: 1; }
|
22 |
}
|
23 |
.fade-in-text {
|
24 |
-
animation: fadeIn
|
25 |
}
|
26 |
</style>
|
27 |
""", unsafe_allow_html=True)
|
@@ -124,7 +124,7 @@ def stream_response_with_fade(response, message_placeholder, typing_indicator):
|
|
124 |
full_response += chunk.text
|
125 |
typing_indicator.markdown("*Generando respuesta...*")
|
126 |
message_placeholder.markdown(f'<div class="fade-in-text">{full_response}</div>', unsafe_allow_html=True)
|
127 |
-
time.sleep(0.3
|
128 |
|
129 |
typing_indicator.empty()
|
130 |
message_placeholder.markdown(f'<div class="fade-in-text">{full_response}</div>', unsafe_allow_html=True)
|
|
|
21 |
to { opacity: 1; }
|
22 |
}
|
23 |
.fade-in-text {
|
24 |
+
animation: fadeIn 1.5s ease-in; /* Aumentado de 0.5s a 1.5s */
|
25 |
}
|
26 |
</style>
|
27 |
""", unsafe_allow_html=True)
|
|
|
124 |
full_response += chunk.text
|
125 |
typing_indicator.markdown("*Generando respuesta...*")
|
126 |
message_placeholder.markdown(f'<div class="fade-in-text">{full_response}</div>', unsafe_allow_html=True)
|
127 |
+
time.sleep(0.8) # Aumentado de 0.3 a 0.8 segundos para hacerlo más lento
|
128 |
|
129 |
typing_indicator.empty()
|
130 |
message_placeholder.markdown(f'<div class="fade-in-text">{full_response}</div>', unsafe_allow_html=True)
|