JeCabrera commited on
Commit
4ffe354
·
verified ·
1 Parent(s): cda11b6

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,7 +21,7 @@ def apply_fade_in_effect():
21
  to { opacity: 1; }
22
  }
23
  .fade-in-text {
24
- animation: fadeIn 0.5s ease-in;
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)