Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -97,7 +97,7 @@ def ollamafy_model(login, model_id, ollama_library_username , ollama_q_method, l
|
|
97 |
)
|
98 |
dl_pattern += pattern
|
99 |
|
100 |
-
if not os.path.isfile(fp16) and
|
101 |
api.snapshot_download(repo_id=model_id, local_dir=model_name, local_dir_use_symlinks=False, allow_patterns=dl_pattern)
|
102 |
print("Model downloaded successfully!")
|
103 |
print(f"Current working directory: {os.getcwd()}")
|
|
|
97 |
)
|
98 |
dl_pattern += pattern
|
99 |
|
100 |
+
if not os.path.isfile(fp16) and download_gguf_link is None:
|
101 |
api.snapshot_download(repo_id=model_id, local_dir=model_name, local_dir_use_symlinks=False, allow_patterns=dl_pattern)
|
102 |
print("Model downloaded successfully!")
|
103 |
print(f"Current working directory: {os.getcwd()}")
|