Update app.py
Browse files
app.py
CHANGED
@@ -99,7 +99,7 @@ def create_demo():
|
|
99 |
|
100 |
def update_subset2(subset1):
|
101 |
subset2_dirs, _ = get_next_level(os.path.join(root_dir, subset1))
|
102 |
-
return gr.Dropdown(choices=subset2_dirs,
|
103 |
|
104 |
def update_videos(subset1, subset2):
|
105 |
_, videos = get_next_level(os.path.join(root_dir, subset1, subset2))
|
|
|
99 |
|
100 |
def update_subset2(subset1):
|
101 |
subset2_dirs, _ = get_next_level(os.path.join(root_dir, subset1))
|
102 |
+
return gr.Dropdown(choices=subset2_dirs, interactive=True), gr.Dropdown(choices=[], interactive=True)
|
103 |
|
104 |
def update_videos(subset1, subset2):
|
105 |
_, videos = get_next_level(os.path.join(root_dir, subset1, subset2))
|