Update app.py
Browse files
app.py
CHANGED
@@ -47,8 +47,6 @@ interfaz = gr.Interface(
|
|
47 |
*checkboxes_tipos.values()
|
48 |
]
|
49 |
)
|
50 |
-
btn = gr.Button(value="Guardar en JSON")
|
51 |
-
btn.click(guardar_checkbox_info)
|
52 |
|
53 |
# Creaci贸n de diccionario de checkboxes
|
54 |
checkboxes = {key: False for key in checkboxes_tipos.keys()}
|
@@ -57,8 +55,5 @@ checkboxes = {key: False for key in checkboxes_tipos.keys()}
|
|
57 |
def accion_boton():
|
58 |
guardar_checkbox_info(checkboxes, 'rlhf.json')
|
59 |
|
60 |
-
# Asignaci贸n de la acci贸n al bot贸n
|
61 |
-
interfaz[3].onclick(accion_boton)
|
62 |
-
|
63 |
# Ejecuci贸n de la interfaz
|
64 |
interfaz.launch()
|
|
|
47 |
*checkboxes_tipos.values()
|
48 |
]
|
49 |
)
|
|
|
|
|
50 |
|
51 |
# Creaci贸n de diccionario de checkboxes
|
52 |
checkboxes = {key: False for key in checkboxes_tipos.keys()}
|
|
|
55 |
def accion_boton():
|
56 |
guardar_checkbox_info(checkboxes, 'rlhf.json')
|
57 |
|
|
|
|
|
|
|
58 |
# Ejecuci贸n de la interfaz
|
59 |
interfaz.launch()
|