Omnibus commited on
Commit
dfd25b4
1 Parent(s): 3d37509

Update player.py

Browse files
Files changed (1) hide show
  1. player.py +6 -6
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
- authors=[]
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
- authors.append(space.id)
22
  except Exception:
23
  pass
24
- return (gr.Dropdown.update(label="Spaces", choices=[s for s in authors])
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"))