Spaces:
Sleeping
Sleeping
Update player.py
Browse files
player.py
CHANGED
@@ -8,20 +8,20 @@ api = HfApi(token=token)
|
|
8 |
def find_dataset(author=None):
|
9 |
s_ist = (api.list_datasets(author=author,search="ai-tube"))
|
10 |
#print(api.whoami())
|
11 |
-
|
12 |
videos=[]
|
13 |
out_html=""
|
14 |
for space in s_ist:
|
15 |
#for i,space in enumerate(s_ist):
|
16 |
try:
|
17 |
-
space_loc=space.id
|
18 |
-
space_auth=space_loc.split("/",1)[0]
|
19 |
-
space_name=space_loc.split("/",1)[0]
|
20 |
#space_ea = space.id.split("/",1)[1]
|
21 |
-
|
22 |
except Exception:
|
23 |
pass
|
24 |
-
return (gr.Dropdown.update(label="Spaces", choices=[s for s in
|
25 |
|
26 |
def find_dataset_og(author=None):
|
27 |
s_ist = (api.list_datasets(author=author,search="ai-tube"))
|
|
|
8 |
def find_dataset(author=None):
|
9 |
s_ist = (api.list_datasets(author=author,search="ai-tube"))
|
10 |
#print(api.whoami())
|
11 |
+
channels=[]
|
12 |
videos=[]
|
13 |
out_html=""
|
14 |
for space in s_ist:
|
15 |
#for i,space in enumerate(s_ist):
|
16 |
try:
|
17 |
+
#space_loc=space.id
|
18 |
+
#space_auth=space_loc.split("/",1)[0]
|
19 |
+
#space_name=space_loc.split("/",1)[0]
|
20 |
#space_ea = space.id.split("/",1)[1]
|
21 |
+
channels.append(space.id)
|
22 |
except Exception:
|
23 |
pass
|
24 |
+
return (gr.Dropdown.update(label="Spaces", choices=[s for s in channels]))
|
25 |
|
26 |
def find_dataset_og(author=None):
|
27 |
s_ist = (api.list_datasets(author=author,search="ai-tube"))
|