Update app.py
Browse files
app.py
CHANGED
@@ -125,7 +125,8 @@ def create_interface():
|
|
125 |
classification_types = matches
|
126 |
classification_types_options = [(option, option) for option in classification_types]
|
127 |
classification_types_checkboxes = gr.CheckboxGroup(label="Clasificacion Tipo", choices=classification_types_options, interactive = True)
|
128 |
-
|
|
|
129 |
return output, classification_types_checkboxes
|
130 |
|
131 |
# Definimos la funci贸n que se ejecutar谩 cuando se presione el bot贸n de salida
|
@@ -149,10 +150,7 @@ def create_interface():
|
|
149 |
fn=fn,
|
150 |
inputs=[input_text, rag_checkbox, prompt_template],
|
151 |
outputs=[output_text, classification_types_checkboxes],
|
152 |
-
examples=examples
|
153 |
-
live=True,
|
154 |
-
fn_on_change_mark=mark_checkboxes,
|
155 |
-
fn_on_change_save=save_output
|
156 |
)
|
157 |
|
158 |
return iface
|
|
|
125 |
classification_types = matches
|
126 |
classification_types_options = [(option, option) for option in classification_types]
|
127 |
classification_types_checkboxes = gr.CheckboxGroup(label="Clasificacion Tipo", choices=classification_types_options, interactive = True)
|
128 |
+
mark_checkboxes(output, classification_types_options)
|
129 |
+
save_output(output, classification_types_options)
|
130 |
return output, classification_types_checkboxes
|
131 |
|
132 |
# Definimos la funci贸n que se ejecutar谩 cuando se presione el bot贸n de salida
|
|
|
150 |
fn=fn,
|
151 |
inputs=[input_text, rag_checkbox, prompt_template],
|
152 |
outputs=[output_text, classification_types_checkboxes],
|
153 |
+
examples=examples
|
|
|
|
|
|
|
154 |
)
|
155 |
|
156 |
return iface
|