Omnibus commited on
Commit
a914fc6
1 Parent(s): 27ae1cd

Update dl.py

Browse files
Files changed (1) hide show
  1. dl.py +2 -1
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
- return file
 
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}')