Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -54,8 +54,8 @@ with gr.Blocks() as nps:
|
|
54 |
gr.Markdown(f"- {cat}")
|
55 |
remove_btn = gr.Button("X", elem_id=f"remove_{i}", interactive=True)
|
56 |
remove_btn.click(
|
57 |
-
fn=
|
58 |
-
inputs=[],
|
59 |
outputs=category_boxes
|
60 |
)
|
61 |
category_components.append(gr.Row())
|
|
|
54 |
gr.Markdown(f"- {cat}")
|
55 |
remove_btn = gr.Button("X", elem_id=f"remove_{i}", interactive=True)
|
56 |
remove_btn.click(
|
57 |
+
fn=remove_category,
|
58 |
+
inputs=[gr.State(cat), category_boxes],
|
59 |
outputs=category_boxes
|
60 |
)
|
61 |
category_components.append(gr.Row())
|