Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -455,7 +455,7 @@ def download_model():
|
|
455 |
elif m := re.search(r"(?:https?://)?(?:www\.)?civitai\.com/models/([0-9]+)", model_url):
|
456 |
real_model_url = f"https://civitai.com/api/download/models/{m.group(1)}"
|
457 |
|
458 |
-
|
459 |
|
460 |
if model_file.lower().endswith(".safetensors"):
|
461 |
from safetensors.torch import load_file as load_safetensors
|
|
|
455 |
elif m := re.search(r"(?:https?://)?(?:www\.)?civitai\.com/models/([0-9]+)", model_url):
|
456 |
real_model_url = f"https://civitai.com/api/download/models/{m.group(1)}"
|
457 |
|
458 |
+
aria2c "{real_model_url}" --console-log-level=warn -c -s 16 -x 16 -k 10M -d / -o "{model_file}"
|
459 |
|
460 |
if model_file.lower().endswith(".safetensors"):
|
461 |
from safetensors.torch import load_file as load_safetensors
|