jcmachicao commited on
Commit
69b5d49
verified
1 Parent(s): b5bad70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -9,7 +9,10 @@ inicializar_grafo()
9
  normativas = cargar_normativas()
10
  estudiantes = cargar_estudiantes()
11
 
12
- norm_options = [norm['nombre'] for norm in normativas["normativa_peruana_gestion_riesgos"]]
 
 
 
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 de Norma')
24
 
25
- normativa_dropdown = gr.Dropdown(choices=norm_options, label="Normativas")
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