Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ def update_options(selected_option):
|
|
5 |
# new_options = 'Something '+ selected_option
|
6 |
new_options = [selected_option + str(x) for x in range(1, 4)]
|
7 |
print(new_options)
|
8 |
-
return new_options # Return current selection to persist it in the first dropdown
|
9 |
|
10 |
with gr.Blocks() as interface:
|
11 |
dropdown = gr.Dropdown(choices=["Anna", "Christine", "Phoebe"])
|
|
|
5 |
# new_options = 'Something '+ selected_option
|
6 |
new_options = [selected_option + str(x) for x in range(1, 4)]
|
7 |
print(new_options)
|
8 |
+
return new_options[0] # Return current selection to persist it in the first dropdown
|
9 |
|
10 |
with gr.Blocks() as interface:
|
11 |
dropdown = gr.Dropdown(choices=["Anna", "Christine", "Phoebe"])
|