Update app.py
Browse files
app.py
CHANGED
@@ -130,12 +130,11 @@ def create_interface():
|
|
130 |
# Definimos la función que se ejecutará cuando se envíe la entrada
|
131 |
def fn(text, rag, prompt_template):
|
132 |
|
133 |
-
|
134 |
-
|
135 |
-
classification_types = [item['clasificacion_tipo'] for item in data]
|
136 |
classification_types_options = [(option, option) for option in classification_types]
|
137 |
classification_types_checkboxes = gr.CheckboxGroup(label="Clasificacion Tipo", choices=classification_types_options, interactive = True)
|
138 |
-
|
139 |
return output, classification_types_checkboxes
|
140 |
|
141 |
examples = [
|
|
|
130 |
# Definimos la función que se ejecutará cuando se envíe la entrada
|
131 |
def fn(text, rag, prompt_template):
|
132 |
|
133 |
+
output = process_input(text, rag, prompt_template)
|
134 |
+
classification_types = [item['clasificacion_tipo'] for item in output]
|
|
|
135 |
classification_types_options = [(option, option) for option in classification_types]
|
136 |
classification_types_checkboxes = gr.CheckboxGroup(label="Clasificacion Tipo", choices=classification_types_options, interactive = True)
|
137 |
+
|
138 |
return output, classification_types_checkboxes
|
139 |
|
140 |
examples = [
|