Spaces:
Sleeping
Sleeping
Update player.py
Browse files
player.py
CHANGED
@@ -23,6 +23,7 @@ def load_vid(channel):
|
|
23 |
out_html=""
|
24 |
label_html=""
|
25 |
vid_list=[]
|
|
|
26 |
try:
|
27 |
file_box = [info.path for info in list_files_info(f'{channel}', repo_type="dataset")]
|
28 |
ai_tube_box = [info.path for info in list_files_info(f'{source_dataset}', repo_type="dataset")]
|
@@ -63,7 +64,7 @@ def load_vid(channel):
|
|
63 |
pass
|
64 |
except Exception as e:
|
65 |
print(e)
|
66 |
-
return(out_html,gr.Dropdown(label="Videos",type="index", choices=[s for s in vid_list],interactive=True))
|
67 |
|
68 |
|
69 |
def show_vid(vid_file,list_hid):
|
|
|
23 |
out_html=""
|
24 |
label_html=""
|
25 |
vid_list=[]
|
26 |
+
sync_list=[]
|
27 |
try:
|
28 |
file_box = [info.path for info in list_files_info(f'{channel}', repo_type="dataset")]
|
29 |
ai_tube_box = [info.path for info in list_files_info(f'{source_dataset}', repo_type="dataset")]
|
|
|
64 |
pass
|
65 |
except Exception as e:
|
66 |
print(e)
|
67 |
+
return(out_html,gr.Dropdown(label="Videos",type="index", choices=[s for s in vid_list],interactive=True),sync_list)
|
68 |
|
69 |
|
70 |
def show_vid(vid_file,list_hid):
|