Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,10 @@ inicializar_grafo()
|
|
9 |
normativas = cargar_normativas()
|
10 |
estudiantes = cargar_estudiantes()
|
11 |
|
12 |
-
|
|
|
|
|
|
|
13 |
student_names = estudiantes["estudiantes"]
|
14 |
|
15 |
# Gradio Interface
|
@@ -18,11 +21,10 @@ iface = gr.Blocks()
|
|
18 |
with iface:
|
19 |
gr.Markdown("# Foro Din谩mico con Visualizaci贸n de Red")
|
20 |
|
21 |
-
# 馃搶 Norm Selection Section
|
22 |
with gr.Row():
|
23 |
-
gr.Markdown('## Selecci贸n
|
24 |
|
25 |
-
normativa_dropdown = gr.Dropdown(choices=norm_options, label="
|
26 |
normativa_html = gr.HTML()
|
27 |
|
28 |
# 馃搶 Update HTML when a norm is selected
|
|
|
9 |
normativas = cargar_normativas()
|
10 |
estudiantes = cargar_estudiantes()
|
11 |
|
12 |
+
coleccion = "normativa_peruana_gestion_riesgos"
|
13 |
+
coleccion = "propuestas_gestion_incertidumbre"
|
14 |
+
|
15 |
+
norm_options = [norm['nombre'] for norm in normativas[coleccion]
|
16 |
student_names = estudiantes["estudiantes"]
|
17 |
|
18 |
# Gradio Interface
|
|
|
21 |
with iface:
|
22 |
gr.Markdown("# Foro Din谩mico con Visualizaci贸n de Red")
|
23 |
|
|
|
24 |
with gr.Row():
|
25 |
+
gr.Markdown('## Selecci贸n del Documento')
|
26 |
|
27 |
+
normativa_dropdown = gr.Dropdown(choices=norm_options, label="Documentos a Explorar")
|
28 |
normativa_html = gr.HTML()
|
29 |
|
30 |
# 馃搶 Update HTML when a norm is selected
|