Spaces:
Running
Running
Update app.py
#27
by
reach-vb
HF staff
- opened
app.py
CHANGED
@@ -8,7 +8,7 @@ from typing import Union
|
|
8 |
|
9 |
def download_file(media_type, digest, image):
|
10 |
url = f"https://registry.ollama.ai/v2/library/{image}/blobs/{digest}"
|
11 |
-
file_name = f"blobs/{media_type.split(
|
12 |
|
13 |
# Create the directory if it doesn't exist
|
14 |
os.makedirs(os.path.dirname(file_name), exist_ok=True)
|
|
|
8 |
|
9 |
def download_file(media_type, digest, image):
|
10 |
url = f"https://registry.ollama.ai/v2/library/{image}/blobs/{digest}"
|
11 |
+
file_name = f"blobs/{media_type.split('.')[-1]}"
|
12 |
|
13 |
# Create the directory if it doesn't exist
|
14 |
os.makedirs(os.path.dirname(file_name), exist_ok=True)
|