Update dl.py
Browse files
dl.py
CHANGED
@@ -2,7 +2,7 @@ import requests as rq
|
|
2 |
import json
|
3 |
import os
|
4 |
import sys
|
5 |
-
tkn=sys.argv[
|
6 |
opt=rq.get("https://civitai.com/api/v1/model-versions/by-hash/F32CC1F1")
|
7 |
j:dict=opt.json()
|
8 |
opt =rq.get(j.get("files")[0].get("downloadUrl")+"?token="+tkn)
|
|
|
2 |
import json
|
3 |
import os
|
4 |
import sys
|
5 |
+
tkn=sys.argv[0]
|
6 |
opt=rq.get("https://civitai.com/api/v1/model-versions/by-hash/F32CC1F1")
|
7 |
j:dict=opt.json()
|
8 |
opt =rq.get(j.get("files")[0].get("downloadUrl")+"?token="+tkn)
|