harishB97 commited on
Commit
5618afe
·
verified ·
1 Parent(s): cd6ac26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -165,7 +165,7 @@ def update_options(selected_option):
165
  with gr.Blocks() as demo:
166
  with gr.Row():
167
  dropdown_1 = gr.Dropdown(["Option 1", "Option 2", "Option 3"], label="Main Options")
168
- dropdown_2 = gr.Dropdown([], label="Sub Options")
169
 
170
  # When the first dropdown changes, update the options in the second dropdown
171
  dropdown_1.change(fn=update_options, inputs=dropdown_1, outputs=dropdown_2)
 
165
  with gr.Blocks() as demo:
166
  with gr.Row():
167
  dropdown_1 = gr.Dropdown(["Option 1", "Option 2", "Option 3"], label="Main Options")
168
+ dropdown_2 = gr.Dropdown(['just here', 'for the sake of it'], label="Sub Options")
169
 
170
  # When the first dropdown changes, update the options in the second dropdown
171
  dropdown_1.change(fn=update_options, inputs=dropdown_1, outputs=dropdown_2)