Update app.py
Browse files
app.py
CHANGED
@@ -132,7 +132,7 @@ def create_interface():
|
|
132 |
def fn(text, rag, prompt_template):
|
133 |
|
134 |
output = process_input(text, rag, prompt_template)
|
135 |
-
matches = re.findall(r"
|
136 |
classification_types = matches
|
137 |
classification_types_options = [(option, option) for option in classification_types]
|
138 |
classification_types_checkboxes = gr.CheckboxGroup(label="Clasificacion Tipo", choices=classification_types_options, interactive = True)
|
|
|
132 |
def fn(text, rag, prompt_template):
|
133 |
|
134 |
output = process_input(text, rag, prompt_template)
|
135 |
+
matches = re.findall(r"tipo: '([^']+)'", output)
|
136 |
classification_types = matches
|
137 |
classification_types_options = [(option, option) for option in classification_types]
|
138 |
classification_types_checkboxes = gr.CheckboxGroup(label="Clasificacion Tipo", choices=classification_types_options, interactive = True)
|