zhou12189108 commited on
Commit
1406941
1 Parent(s): 11a27a1

Upload get_all_model.py

Browse files
Files changed (1) hide show
  1. get_all_model.py +1 -1
get_all_model.py CHANGED
@@ -19,10 +19,10 @@ def download_all():
19
  for j in i['assets']:
20
  asset_url = j['browser_download_url']
21
  asset_name = re.sub('.*/', '', asset_url)
22
- print(f'Downloading {asset_name}')
23
  models_path = models_dir + asset_name
24
  if os.path.exists(models_path):
25
  continue
 
26
  r = session.get(asset_url, stream=True)
27
  with open(models_path, 'wb') as f:
28
  f.write(r.content)
 
19
  for j in i['assets']:
20
  asset_url = j['browser_download_url']
21
  asset_name = re.sub('.*/', '', asset_url)
 
22
  models_path = models_dir + asset_name
23
  if os.path.exists(models_path):
24
  continue
25
+ print(f'Downloading {asset_name}')
26
  r = session.get(asset_url, stream=True)
27
  with open(models_path, 'wb') as f:
28
  f.write(r.content)