Working again - Fix for #23 - #26 - update urls and wget params

#27
by neuralworm - opened
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -18,15 +18,15 @@ setup()
18
  # download cache files
19
  print("Download preprocessed cache files...")
20
  CACHE_URLS = [
21
- 'https://huggingface.co/pharma/ci-preprocess/resolve/main/ViT-H-14_laion2b_s32b_b79k_artists.pkl',
22
- 'https://huggingface.co/pharma/ci-preprocess/resolve/main/ViT-H-14_laion2b_s32b_b79k_flavors.pkl',
23
- 'https://huggingface.co/pharma/ci-preprocess/resolve/main/ViT-H-14_laion2b_s32b_b79k_mediums.pkl',
24
- 'https://huggingface.co/pharma/ci-preprocess/resolve/main/ViT-H-14_laion2b_s32b_b79k_movements.pkl',
25
- 'https://huggingface.co/pharma/ci-preprocess/resolve/main/ViT-H-14_laion2b_s32b_b79k_trendings.pkl',
26
  ]
27
  os.makedirs('cache', exist_ok=True)
28
  for url in CACHE_URLS:
29
- print(subprocess.run(['wget', url, '-P', 'cache'], stdout=subprocess.PIPE).stdout.decode('utf-8'))
30
 
31
  import sys
32
  sys.path.append('src/blip')
 
18
  # download cache files
19
  print("Download preprocessed cache files...")
20
  CACHE_URLS = [
21
+ 'https://huggingface.co/pharma/ci-preprocess/resolve/main/ViT-H-14_laion2b_s32b_b79k_artists.safetensors',
22
+ 'https://huggingface.co/pharma/ci-preprocess/resolve/main/ViT-H-14_laion2b_s32b_b79k_flavors.safetensors',
23
+ 'https://huggingface.co/pharma/ci-preprocess/resolve/main/ViT-H-14_laion2b_s32b_b79k_mediums.safetensors',
24
+ 'https://huggingface.co/pharma/ci-preprocess/resolve/main/ViT-H-14_laion2b_s32b_b79k_movements.safetensors',
25
+ 'https://huggingface.co/pharma/ci-preprocess/resolve/main/ViT-H-14_laion2b_s32b_b79k_trendings.safetensors',
26
  ]
27
  os.makedirs('cache', exist_ok=True)
28
  for url in CACHE_URLS:
29
+ print(subprocess.run(['wget', '-c', url, '-P', 'cache'], stdout=subprocess.PIPE).stdout.decode('utf-8'))
30
 
31
  import sys
32
  sys.path.append('src/blip')