albertvillanova HF Staff commited on
Commit
71f5eaa
·
verified ·
1 Parent(s): ad269a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -10,8 +10,14 @@ def init_choices():
10
 
11
  with gr.Blocks() as demo:
12
  dropdown = gr.Dropdown(label="Select", multiselect=True, choices=["a0", "b0"])
 
13
  state = gr.State()
14
 
 
 
 
 
 
15
 
16
  demo.launch()
17
 
 
10
 
11
  with gr.Blocks() as demo:
12
  dropdown = gr.Dropdown(label="Select", multiselect=True, choices=["a0", "b0"])
13
+ dropdown2 = gr.Dropdown(label="Select", multiselect=True)
14
  state = gr.State()
15
 
16
+ demo.load(
17
+ fn=init_choices,
18
+ outputs=state,
19
+ )
20
+
21
 
22
  demo.launch()
23