Update app.py
Browse files
app.py
CHANGED
@@ -189,7 +189,7 @@ with gr.Blocks(title="🤖Chucho Bot - CopyXpert Sales Assistant") as demo:
|
|
189 |
|
190 |
with gr.Row():
|
191 |
with gr.Column(scale=4):
|
192 |
-
chatbot = gr.Chatbot()
|
193 |
msg = gr.Textbox(
|
194 |
placeholder="Escribe tu pregunta aquí...",
|
195 |
container=False,
|
@@ -204,7 +204,7 @@ with gr.Blocks(title="🤖Chucho Bot - CopyXpert Sales Assistant") as demo:
|
|
204 |
file_upload = gr.File(
|
205 |
label="Sube un archivo (opcional)",
|
206 |
file_types=["text", "pdf", "docx", "csv", "xlsx", "image"],
|
207 |
-
type="
|
208 |
)
|
209 |
|
210 |
examples = gr.Examples(
|
|
|
189 |
|
190 |
with gr.Row():
|
191 |
with gr.Column(scale=4):
|
192 |
+
chatbot = gr.Chatbot(type="messages")
|
193 |
msg = gr.Textbox(
|
194 |
placeholder="Escribe tu pregunta aquí...",
|
195 |
container=False,
|
|
|
204 |
file_upload = gr.File(
|
205 |
label="Sube un archivo (opcional)",
|
206 |
file_types=["text", "pdf", "docx", "csv", "xlsx", "image"],
|
207 |
+
type="filepath"
|
208 |
)
|
209 |
|
210 |
examples = gr.Examples(
|