geronimo-pericoli
commited on
Commit
•
65c4ba4
1
Parent(s):
cf606df
Update app.py
Browse files
app.py
CHANGED
@@ -493,7 +493,7 @@ choices_with_tools = [
|
|
493 |
("[8] Resolución 3690 - 2016", retriever_8_tool),
|
494 |
("[9] Resolución 3157 - 2018", retriever_9_tool),
|
495 |
("[10] Preguntas y respuestas Res. 3157 - 2018", retriever_10_tool),
|
496 |
-
("General",
|
497 |
|
498 |
]
|
499 |
|
@@ -669,10 +669,9 @@ with gr.Blocks(theme='sudeepshouche/minimalist', css=css) as demo:
|
|
669 |
gr.Examples(label="Ejemplos", examples=["Implementación de la res. 3157 de 2018"], inputs=[pregunta])
|
670 |
|
671 |
with gr.Column():
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
chx.select(fn=update_selected_choices, inputs=chx)
|
676 |
|
677 |
with gr.Accordion(elem_classes="accordion", label="Referencias", open=True):
|
678 |
mkdn = gr.Markdown()
|
|
|
493 |
("[8] Resolución 3690 - 2016", retriever_8_tool),
|
494 |
("[9] Resolución 3157 - 2018", retriever_9_tool),
|
495 |
("[10] Preguntas y respuestas Res. 3157 - 2018", retriever_10_tool),
|
496 |
+
("General", retriever_all_tool),
|
497 |
|
498 |
]
|
499 |
|
|
|
669 |
gr.Examples(label="Ejemplos", examples=["Implementación de la res. 3157 de 2018"], inputs=[pregunta])
|
670 |
|
671 |
with gr.Column():
|
672 |
+
# CheckboxGroup para seleccionar bases de datos
|
673 |
+
chx = gr.CheckboxGroup(choices=choice_labels, value=choice_labels, label="Bases de datos del conocimiento")
|
674 |
+
chx.select(fn=update_selected_choices, inputs=chx)
|
|
|
675 |
|
676 |
with gr.Accordion(elem_classes="accordion", label="Referencias", open=True):
|
677 |
mkdn = gr.Markdown()
|