Update app.py
Browse files
app.py
CHANGED
@@ -111,11 +111,11 @@ with iface:
|
|
111 |
|
112 |
with gr.Row():
|
113 |
nombre = gr.Dropdown(choices=students, label="Nombre del Estudiante")
|
|
|
|
|
114 |
texto = gr.Textbox(label="Tu aporte")
|
115 |
|
116 |
submit_button = gr.Button("Agregar Aporte")
|
117 |
-
|
118 |
-
# Fix: Now passing both inputs and updating the graph output properly
|
119 |
submit_button.click(
|
120 |
fn=agregar_aporte,
|
121 |
inputs=[nombre, texto], # Fix: Now passing both inputs
|
|
|
111 |
|
112 |
with gr.Row():
|
113 |
nombre = gr.Dropdown(choices=students, label="Nombre del Estudiante")
|
114 |
+
|
115 |
+
with gr.Row():
|
116 |
texto = gr.Textbox(label="Tu aporte")
|
117 |
|
118 |
submit_button = gr.Button("Agregar Aporte")
|
|
|
|
|
119 |
submit_button.click(
|
120 |
fn=agregar_aporte,
|
121 |
inputs=[nombre, texto], # Fix: Now passing both inputs
|