Spaces:
Running
Running
Update dl.py
Browse files
dl.py
CHANGED
@@ -60,9 +60,9 @@ def show_f(repo,name,token):
|
|
60 |
|
61 |
def show_f2(repo,name,token):
|
62 |
api = HfApi(token=token)
|
63 |
-
f_ist = snapshot_download(repo_id=f'{repo}/{name}', repo_type="space")
|
64 |
|
65 |
-
|
66 |
print (f_ist)
|
67 |
file_list = []
|
68 |
file_out = []
|
|
|
60 |
|
61 |
def show_f2(repo,name,token):
|
62 |
api = HfApi(token=token)
|
63 |
+
#f_ist = snapshot_download(repo_id=f'{repo}/{name}', repo_type="space")
|
64 |
|
65 |
+
f_ist = (api.list_repo_files(repo_id=f'{repo}/{name}', repo_type="space"))
|
66 |
print (f_ist)
|
67 |
file_list = []
|
68 |
file_out = []
|