jcmachicao commited on
Commit
232908b
verified
1 Parent(s): 785d551

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -18,22 +18,23 @@ iface = gr.Blocks()
18
  with iface:
19
  gr.Markdown("# Foro Din谩mico con Visualizaci贸n de Red")
20
 
 
21
  with gr.Row():
22
  gr.Markdown('## Selecci贸n de Norma')
23
 
24
  normativa_dropdown = gr.Dropdown(choices=norm_options, label="Normativas")
25
  normativa_html = gr.HTML()
26
- norma_field = gr.Textbox(label="Norma", interactive=False)
27
-
28
- normativa_dropdown.change(fn=mostrar_detalles, inputs=normativa_dropdown, outputs=[normativa_html, norma_field])
29
 
 
 
 
30
  with gr.Row():
31
  gr.Markdown("## Red de Aportes:")
32
  graph_output = gr.Image(visualizar_grafo(), label="Red de Aportes")
33
 
34
  with gr.Row():
35
  nombre = gr.Dropdown(choices=student_names, label="Nombre del Estudiante")
36
- enfoque = gr.Radio(["Determinista", "Sist茅mico"], label="Enfoque")
37
 
38
  with gr.Row():
39
  texto = gr.Textbox(label="Tu aporte")
 
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
29
+ normativa_dropdown.change(fn=mostrar_detalles, inputs=normativa_dropdown, outputs=normativa_html)
30
+
31
  with gr.Row():
32
  gr.Markdown("## Red de Aportes:")
33
  graph_output = gr.Image(visualizar_grafo(), label="Red de Aportes")
34
 
35
  with gr.Row():
36
  nombre = gr.Dropdown(choices=student_names, label="Nombre del Estudiante")
37
+ enfoque = gr.Radio(["Determinista", "Sist茅mico", "Transitorio", "Evolutivo"], label="Enfoque")
38
 
39
  with gr.Row():
40
  texto = gr.Textbox(label="Tu aporte")