Spaces:
Runtime error
Runtime error
Arreglando consitas
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ with gr.Blocks() as demo:
|
|
75 |
buildb = gr.Textbox("⚠️Esperando documentos...",
|
76 |
label="Status", interactive=False, show_label=True)
|
77 |
dataset.change(validate_dataset, inputs=[
|
78 |
-
dataset
|
79 |
uploaded_files.change(request_pathname, inputs=[
|
80 |
uploaded_files], outputs=[dataset])
|
81 |
query = gr.Textbox(
|
@@ -88,7 +88,7 @@ with gr.Blocks() as demo:
|
|
88 |
"### Contexto\n\nEl siguiente contexto ha sido utilizado para generar la respuesta:")
|
89 |
context = gr.Markdown(label="Contexto")
|
90 |
ask.click(fn=do_ask, inputs=[query, buildb,
|
91 |
-
|
92 |
|
93 |
demo.queue(concurrency_count=20)
|
94 |
demo.launch(show_error=True)
|
|
|
75 |
buildb = gr.Textbox("⚠️Esperando documentos...",
|
76 |
label="Status", interactive=False, show_label=True)
|
77 |
dataset.change(validate_dataset, inputs=[
|
78 |
+
dataset], outputs=[buildb])
|
79 |
uploaded_files.change(request_pathname, inputs=[
|
80 |
uploaded_files], outputs=[dataset])
|
81 |
query = gr.Textbox(
|
|
|
88 |
"### Contexto\n\nEl siguiente contexto ha sido utilizado para generar la respuesta:")
|
89 |
context = gr.Markdown(label="Contexto")
|
90 |
ask.click(fn=do_ask, inputs=[query, buildb,
|
91 |
+
dataset], outputs=[answer, context])
|
92 |
|
93 |
demo.queue(concurrency_count=20)
|
94 |
demo.launch(show_error=True)
|