Spaces:
Runtime error
Runtime error
bartman081523
commited on
Commit
•
55af7b4
1
Parent(s):
4d736e9
update urls and wget --continue
Browse files
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.
|
22 |
-
'https://huggingface.co/pharma/ci-preprocess/resolve/main/ViT-H-14_laion2b_s32b_b79k_flavors.
|
23 |
-
'https://huggingface.co/pharma/ci-preprocess/resolve/main/ViT-H-14_laion2b_s32b_b79k_mediums.
|
24 |
-
'https://huggingface.co/pharma/ci-preprocess/resolve/main/ViT-H-14_laion2b_s32b_b79k_movements.
|
25 |
-
'https://huggingface.co/pharma/ci-preprocess/resolve/main/ViT-H-14_laion2b_s32b_b79k_trendings.
|
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', url, '-P', '-c', 'cache'], stdout=subprocess.PIPE).stdout.decode('utf-8'))
|
30 |
|
31 |
import sys
|
32 |
sys.path.append('src/blip')
|