adride00 commited on
Commit
535ccc5
1 Parent(s): 3ba80aa

Update app.py to include a chatbot type in the Gradio interface and remove concurrency settings from the queue method. This enhances the chat experience while maintaining stability under load.

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -10,7 +10,8 @@ def answer(message: str, history: list):
10
  demo = gr.ChatInterface(
11
  fn=answer,
12
  title="IA de Cikode",
13
- description="Haz cualquier pregunta sobre automatizaci贸n o ecommerce."
 
14
  )
15
 
16
- demo.queue(concurrency_count=1).launch() # la cola evita errores bajo carga
 
10
  demo = gr.ChatInterface(
11
  fn=answer,
12
  title="IA de Cikode",
13
+ description="Haz cualquier pregunta sobre automatizaci贸n o ecommerce.",
14
+ chatbot=gr.Chatbot(type="messages")
15
  )
16
 
17
+ demo.queue().launch() # la cola evita errores bajo carga