Update app.py
Browse files
app.py
CHANGED
@@ -168,6 +168,6 @@ with gr.Blocks() as demo:
|
|
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 |
-
|
172 |
|
173 |
demo.launch()
|
|
|
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_2.change(fn=update_options, inputs=dropdown_2, outputs=dropdown_1)
|
172 |
|
173 |
demo.launch()
|