Update app.py
Browse files
app.py
CHANGED
@@ -26,14 +26,14 @@ def update_dropdown_value(query, key_up_data: gr.KeyUpData):
|
|
26 |
with gr.Blocks() as demo:
|
27 |
with gr.Row():
|
28 |
with gr.Column():
|
29 |
-
dataset_dropdown = gr.Dropdown(label="Datasets
|
30 |
gr.Markdown('''Here the return is:
|
31 |
```
|
32 |
gr.update(choices=datasets, visible=True)
|
33 |
```
|
34 |
''')
|
35 |
with gr.Column():
|
36 |
-
dataset_dropdown_update = gr.Dropdown(label="Datasets
|
37 |
gr.Markdown('''Here the return is:
|
38 |
```
|
39 |
gr.update(choices=datasets, value=key_up_data.input_value, visible=True)
|
|
|
26 |
with gr.Blocks() as demo:
|
27 |
with gr.Row():
|
28 |
with gr.Column():
|
29 |
+
dataset_dropdown = gr.Dropdown(label="Datasets Auto-Complete", choices=[""], elem_id="dataset_list", interactive=True, filterable=True, allow_custom_value=True)
|
30 |
gr.Markdown('''Here the return is:
|
31 |
```
|
32 |
gr.update(choices=datasets, visible=True)
|
33 |
```
|
34 |
''')
|
35 |
with gr.Column():
|
36 |
+
dataset_dropdown_update = gr.Dropdown(label="Datasets Auto-Complete", choices=[""], elem_id="dataset_list", interactive=True, filterable=True, allow_custom_value=True)
|
37 |
gr.Markdown('''Here the return is:
|
38 |
```
|
39 |
gr.update(choices=datasets, value=key_up_data.input_value, visible=True)
|