Segizu commited on
Commit
095d11a
·
1 Parent(s): cc12747

Chatbot creation 1

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -34,5 +34,4 @@ if submit_button and user_input:
34
  # Obtener respuesta del bot desde utils.py
35
  bot_response = get_bot_response(user_input)
36
  st.session_state.chat_history.append({"role": "bot", "message": bot_response})
37
- # Recargar la app para actualizar el historial
38
- st.experimental_rerun()
 
34
  # Obtener respuesta del bot desde utils.py
35
  bot_response = get_bot_response(user_input)
36
  st.session_state.chat_history.append({"role": "bot", "message": bot_response})
37
+ # Al no usar experimental_rerun, el script se volverá a ejecutar automáticamente en la siguiente interacción