Update app.py
Browse files
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()
|