Pixartist commited on
Commit
f6a3a1e
1 Parent(s): e34a55c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- aria2c "{real_model_url}" --console-log-level=warn -c -s 16 -x 16 -k 10 -d / -o "{model_file}"
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