Update main22.py
Browse files
main22.py
CHANGED
|
@@ -256,7 +256,6 @@ def download_file(item):
|
|
| 256 |
else:
|
| 257 |
cmd = f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M {download_url} -d {lora_dir} -o {file_name}"
|
| 258 |
result = subprocess.run(cmd ,shell=True ,stderr=subprocess. PIPE, stdout=subprocess.PIPE)
|
| 259 |
-
print(result)
|
| 260 |
if result.returncode == 0:
|
| 261 |
# 判断是civitai还是hugging face还是自定义
|
| 262 |
# civitai
|
|
|
|
| 256 |
else:
|
| 257 |
cmd = f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M {download_url} -d {lora_dir} -o {file_name}"
|
| 258 |
result = subprocess.run(cmd ,shell=True ,stderr=subprocess. PIPE, stdout=subprocess.PIPE)
|
|
|
|
| 259 |
if result.returncode == 0:
|
| 260 |
# 判断是civitai还是hugging face还是自定义
|
| 261 |
# civitai
|