multimodalart HF staff commited on
Commit
2b53411
·
verified ·
1 Parent(s): 2586f07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -20,9 +20,11 @@ def update_dropdown(query, repo_type, key_up_data: gr.KeyUpData):
20
 
21
  with gr.Blocks() as demo:
22
  model_dropdown = gr.Dropdown(label="Models Auto-Complete", choices=[""], allow_custom_value=True)
 
 
23
  dataset_dropdown = gr.Dropdown(label="Datasets Auto-Complete", choices=[""], allow_custom_value=True)
24
- spaces_dropdown = gr.Dropdown(label="Spaces Auto-Complete", choices=[""], allow_custom_value=True)
25
- model_dropdown.key_up(fn=update_dropdown, inputs=[dataset_dropdown, gr.State("model")], outputs=dataset_dropdown, queue=False, show_progress="hidden")
26
  dataset_dropdown.key_up(fn=update_dropdown, inputs=[dataset_dropdown, gr.State("dataset")], outputs=dataset_dropdown, queue=False, show_progress="hidden")
27
- spaces_dropdown.key_up(fn=update_dropdown, inputs=[dataset_dropdown, gr.State("space")], outputs=dataset_dropdown, queue=False, show_progress="hidden")
 
 
28
  demo.launch()
 
20
 
21
  with gr.Blocks() as demo:
22
  model_dropdown = gr.Dropdown(label="Models Auto-Complete", choices=[""], allow_custom_value=True)
23
+ model_dropdown.key_up(fn=update_dropdown, inputs=[model_dropdown, gr.State("model")], outputs=model_dropdown, queue=False, show_progress="hidden")
24
+
25
  dataset_dropdown = gr.Dropdown(label="Datasets Auto-Complete", choices=[""], allow_custom_value=True)
 
 
26
  dataset_dropdown.key_up(fn=update_dropdown, inputs=[dataset_dropdown, gr.State("dataset")], outputs=dataset_dropdown, queue=False, show_progress="hidden")
27
+
28
+ spaces_dropdown = gr.Dropdown(label="Spaces Auto-Complete", choices=[""], allow_custom_value=True)
29
+ spaces_dropdown.key_up(fn=update_dropdown, inputs=[spaces_dropdown, gr.State("space")], outputs=spaces_dropdown, queue=False, show_progress="hidden")
30
  demo.launch()