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