albertvillanova HF staff commited on
Commit
f56b74f
·
verified ·
1 Parent(s): 9226f0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -19,9 +19,10 @@ with gr.Blocks() as demo:
19
  dropdown = gr.Dropdown(label="Select", multiselect=True, choices=["a0", "b0"])
20
  dropdown2 = gr.Dropdown(label="Select", multiselect=True)
21
  state = gr.State()
 
22
 
23
  gr.on(
24
- [demo.load],
25
  fn=init_choices,
26
  outputs=state,
27
  ).then(
 
19
  dropdown = gr.Dropdown(label="Select", multiselect=True, choices=["a0", "b0"])
20
  dropdown2 = gr.Dropdown(label="Select", multiselect=True)
21
  state = gr.State()
22
+ clear = gr.Button("Clear")
23
 
24
  gr.on(
25
+ [demo.load, clear.click],
26
  fn=init_choices,
27
  outputs=state,
28
  ).then(