Spaces:
Running
Running
Update dl.py
Browse files
dl.py
CHANGED
@@ -74,7 +74,8 @@ def show_all(author,token):
|
|
74 |
if not os.path.exists(space_ea):
|
75 |
os.makedirs(space_ea)
|
76 |
file= snapshot_download(repo_id=f'{author}/{space_ea}', repo_type="space")
|
77 |
-
|
|
|
78 |
for d_app in f_ist:
|
79 |
|
80 |
r = requests.get(f'https://huggingface.co/spaces/{author}/{space_ea}/raw/main/{d_app}')
|
|
|
74 |
if not os.path.exists(space_ea):
|
75 |
os.makedirs(space_ea)
|
76 |
file= snapshot_download(repo_id=f'{author}/{space_ea}', repo_type="space")
|
77 |
+
shutil.make_archive("temp", 'zip', file)
|
78 |
+
return "temp.zip"
|
79 |
for d_app in f_ist:
|
80 |
|
81 |
r = requests.get(f'https://huggingface.co/spaces/{author}/{space_ea}/raw/main/{d_app}')
|