Spaces:
Running
Running
Update dl.py
Browse files
dl.py
CHANGED
@@ -124,6 +124,7 @@ def show_all_z(author,token):
|
|
124 |
file= snapshot_download(repo_id=f'{author}/{space_ea}', repo_type="space")
|
125 |
shutil.make_archive(f"{space_ea}", 'zip', file)
|
126 |
file_list.append(f'{space_ea}.zip')
|
|
|
127 |
with ZipFile(f"{author}.zip", "w") as zipObj:
|
128 |
for idx, file in enumerate(file_list):
|
129 |
try:
|
@@ -131,7 +132,7 @@ def show_all_z(author,token):
|
|
131 |
except Exception:
|
132 |
pass
|
133 |
file_list.append(f'{author}.zip')
|
134 |
-
|
135 |
|
136 |
|
137 |
def checkp(p):
|
|
|
124 |
file= snapshot_download(repo_id=f'{author}/{space_ea}', repo_type="space")
|
125 |
shutil.make_archive(f"{space_ea}", 'zip', file)
|
126 |
file_list.append(f'{space_ea}.zip')
|
127 |
+
yield file_list
|
128 |
with ZipFile(f"{author}.zip", "w") as zipObj:
|
129 |
for idx, file in enumerate(file_list):
|
130 |
try:
|
|
|
132 |
except Exception:
|
133 |
pass
|
134 |
file_list.append(f'{author}.zip')
|
135 |
+
yield file_list
|
136 |
|
137 |
|
138 |
def checkp(p):
|