Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,6 @@ def mostrar_detalles(normativa_seleccionada):
|
|
59 |
html = crear_html(normativa)
|
60 |
return html
|
61 |
|
62 |
-
|
63 |
def mostrar_detalles(normativa_seleccionada):
|
64 |
if not normativa_seleccionada:
|
65 |
return "<p>Por favor selecciona una normativa</p>", ""
|
@@ -148,12 +147,15 @@ iface = gr.Blocks()
|
|
148 |
|
149 |
with iface:
|
150 |
gr.Markdown("# Foro Din谩mico con Visualizaci贸n de Red")
|
151 |
-
|
152 |
with gr.Row():
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
|
|
|
|
|
|
157 |
normativa_dropdown.change(fn=mostrar_detalles, inputs=normativa_dropdown, outputs=[normativa_html, norma_field])
|
158 |
|
159 |
with gr.Row():
|
|
|
59 |
html = crear_html(normativa)
|
60 |
return html
|
61 |
|
|
|
62 |
def mostrar_detalles(normativa_seleccionada):
|
63 |
if not normativa_seleccionada:
|
64 |
return "<p>Por favor selecciona una normativa</p>", ""
|
|
|
147 |
|
148 |
with iface:
|
149 |
gr.Markdown("# Foro Din谩mico con Visualizaci贸n de Red")
|
150 |
+
|
151 |
with gr.Row():
|
152 |
+
normativa_dropdown = gr.Dropdown(
|
153 |
+
choices=opciones_normativas,
|
154 |
+
label="Selecciona una normativa",
|
155 |
+
value=opciones_normativas[0] if opciones_normativas else None
|
156 |
+
)
|
157 |
+
|
158 |
+
info_normativa = gr.HTML(value=html_inicial, label="Detalles de la normativa")
|
159 |
normativa_dropdown.change(fn=mostrar_detalles, inputs=normativa_dropdown, outputs=[normativa_html, norma_field])
|
160 |
|
161 |
with gr.Row():
|