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
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(
|
|
|
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
|