Spaces:
Runtime error
Runtime error
Update dl.py
Browse files
dl.py
CHANGED
@@ -2,11 +2,11 @@ import requests as rq
|
|
2 |
import json
|
3 |
|
4 |
|
5 |
-
opt=rq.get("https://civitai.com/api/v1/model-versions/by-hash/
|
6 |
j:dict=opt.json()
|
7 |
opt =rq.get(j.get("files")[0].get("downloadUrl"))
|
8 |
print("0 of 2")
|
9 |
-
print(opt)
|
10 |
with open("/home/user/app/stable-diffusion-webui/models/Stable-diffusion/calicomix.safetensors","wb") as f:
|
11 |
f.write(opt.content)
|
12 |
opt=rq.get("https://civitai.com/api/v1/model-versions/by-hash/B56CE717")
|
|
|
2 |
import json
|
3 |
|
4 |
|
5 |
+
opt=rq.get("https://civitai.com/api/v1/model-versions/by-hash/F32CC1F1")
|
6 |
j:dict=opt.json()
|
7 |
opt =rq.get(j.get("files")[0].get("downloadUrl"))
|
8 |
print("0 of 2")
|
9 |
+
#print(opt)
|
10 |
with open("/home/user/app/stable-diffusion-webui/models/Stable-diffusion/calicomix.safetensors","wb") as f:
|
11 |
f.write(opt.content)
|
12 |
opt=rq.get("https://civitai.com/api/v1/model-versions/by-hash/B56CE717")
|