Update app.py
Browse files
app.py
CHANGED
@@ -21,15 +21,6 @@ iface = gr.Blocks()
|
|
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
|
31 |
-
normativa_dropdown.change(fn=mostrar_detalles, inputs=normativa_dropdown, outputs=normativa_html)
|
32 |
-
|
33 |
# 馃搶 Graph Display
|
34 |
with gr.Row():
|
35 |
gr.Markdown("## Red de Aportes:")
|
@@ -38,7 +29,6 @@ with iface:
|
|
38 |
# 馃搶 Input Fields
|
39 |
with gr.Row():
|
40 |
nombre = gr.Dropdown(choices=student_names, label="Nombre del Estudiante")
|
41 |
-
enfoque = gr.Radio(["Determinista", "Sist茅mico", "Evolutivo", "Cognitivo"], label="Enfoque")
|
42 |
|
43 |
with gr.Row():
|
44 |
texto = gr.Textbox(label="Tu aporte")
|
@@ -47,7 +37,7 @@ with iface:
|
|
47 |
submit_button = gr.Button("Agregar Aporte")
|
48 |
submit_button.click(
|
49 |
fn=agregar_aporte,
|
50 |
-
inputs=[
|
51 |
outputs=graph_output
|
52 |
)
|
53 |
|
|
|
21 |
with iface:
|
22 |
gr.Markdown("# Foro Din谩mico con Visualizaci贸n de Red")
|
23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
# 馃搶 Graph Display
|
25 |
with gr.Row():
|
26 |
gr.Markdown("## Red de Aportes:")
|
|
|
29 |
# 馃搶 Input Fields
|
30 |
with gr.Row():
|
31 |
nombre = gr.Dropdown(choices=student_names, label="Nombre del Estudiante")
|
|
|
32 |
|
33 |
with gr.Row():
|
34 |
texto = gr.Textbox(label="Tu aporte")
|
|
|
37 |
submit_button = gr.Button("Agregar Aporte")
|
38 |
submit_button.click(
|
39 |
fn=agregar_aporte,
|
40 |
+
inputs=[texto],
|
41 |
outputs=graph_output
|
42 |
)
|
43 |
|