Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -266,8 +266,7 @@ def main():
|
|
266 |
help=f"Haz clic para usar esta pregunta",
|
267 |
use_container_width=True
|
268 |
):
|
269 |
-
|
270 |
-
st.rerun()
|
271 |
|
272 |
st.markdown("---")
|
273 |
|
@@ -278,18 +277,13 @@ def main():
|
|
278 |
with col1:
|
279 |
user_question = st.text_input(
|
280 |
"Escribe tu pregunta:",
|
281 |
-
value=st.session_state.pregunta_actual,
|
282 |
placeholder="Ej: ¿Qué normativa regula este proceso?",
|
283 |
label_visibility="collapsed"
|
284 |
)
|
285 |
with col2:
|
286 |
st.markdown("<br>", unsafe_allow_html=True)
|
287 |
enviar = st.form_submit_button("Enviar ▶")
|
288 |
-
|
289 |
-
# Resetear pregunta actual después de mostrarla
|
290 |
-
if st.session_state.pregunta_actual:
|
291 |
-
st.session_state.pregunta_actual = ""
|
292 |
-
|
293 |
if user_question and enviar:
|
294 |
procesar_consulta(user_question)
|
295 |
else:
|
|
|
266 |
help=f"Haz clic para usar esta pregunta",
|
267 |
use_container_width=True
|
268 |
):
|
269 |
+
procesar_consulta(pregunta)
|
|
|
270 |
|
271 |
st.markdown("---")
|
272 |
|
|
|
277 |
with col1:
|
278 |
user_question = st.text_input(
|
279 |
"Escribe tu pregunta:",
|
|
|
280 |
placeholder="Ej: ¿Qué normativa regula este proceso?",
|
281 |
label_visibility="collapsed"
|
282 |
)
|
283 |
with col2:
|
284 |
st.markdown("<br>", unsafe_allow_html=True)
|
285 |
enviar = st.form_submit_button("Enviar ▶")
|
286 |
+
|
|
|
|
|
|
|
|
|
287 |
if user_question and enviar:
|
288 |
procesar_consulta(user_question)
|
289 |
else:
|