harishB97 commited on
Commit
30375f0
·
verified ·
1 Parent(s): 4fa57ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -167,7 +167,7 @@ with gr.Blocks() as demo:
167
  dropdown_1 = gr.Dropdown(choices=["Option 1", "Option 2", "Option 3"], label="Main Options")
168
  dropdown_2 = gr.Dropdown(choices=['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)
172
 
173
  demo.launch()
 
167
  dropdown_1 = gr.Dropdown(choices=["Option 1", "Option 2", "Option 3"], label="Main Options")
168
  dropdown_2 = gr.Dropdown(choices=['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)
172
 
173
  demo.launch()