harishB97 commited on
Commit
b6636ea
·
verified ·
1 Parent(s): e387962

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"])