Omnibus commited on
Commit
d29dbb0
·
1 Parent(s): bfb69ab

Update player.py

Browse files
Files changed (1) hide show
  1. player.py +2 -2
player.py CHANGED
@@ -1,5 +1,5 @@
1
  import gradio as gr
2
- from huggingface_hub import HfApi
3
  token = ""
4
  api = HfApi(token=token)
5
 
@@ -15,7 +15,7 @@ def find_dataset(author=None):
15
  #space_ea = space.id.split("/",1)[1]
16
  spaces.append(f'{space.id}<br>')
17
  out_html = f'{out_html}{space.id}<br>'
18
-
19
  print(space.id)
20
  except Exception as e:
21
  print(e)
 
1
  import gradio as gr
2
+ from huggingface_hub import HfApi, list_files_info
3
  token = ""
4
  api = HfApi(token=token)
5
 
 
15
  #space_ea = space.id.split("/",1)[1]
16
  spaces.append(f'{space.id}<br>')
17
  out_html = f'{out_html}{space.id}<br>'
18
+ print([info.path for info in list_files_info(f'{space.id}', repo_type="dataset")])
19
  print(space.id)
20
  except Exception as e:
21
  print(e)