Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -30,25 +30,4 @@ with iface:
|
|
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:")
|
36 |
-
graph_output = gr.Image(visualizar_grafo(), label="Red de Aportes")
|
37 |
-
|
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")
|
45 |
-
|
46 |
-
# 📌 Submit Button (Now Uses `normativa_dropdown` Directly)
|
47 |
-
submit_button = gr.Button("Agregar Aporte")
|
48 |
-
submit_button.click(
|
49 |
-
fn=agregar_aporte,
|
50 |
-
inputs=[nombre, enfoque, normativa_dropdown, texto],
|
51 |
-
outputs=graph_output
|
52 |
-
)
|
53 |
-
|
54 |
iface.launch(share=True)
|
|
|
30 |
# 📌 Update HTML when a norm is selected
|
31 |
normativa_dropdown.change(fn=mostrar_detalles, inputs=normativa_dropdown, outputs=normativa_html)
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
iface.launch(share=True)
|