sca255 commited on
Commit
d9655bd
1 Parent(s): d795ef2

Update dl.py

Browse files
Files changed (1) hide show
  1. dl.py +2 -1
dl.py CHANGED
@@ -1,7 +1,8 @@
1
  import requests as rq
2
  import json
3
  import os
4
- tkn=os.getenv("token_civit")
 
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")+"?token="+tkn)
 
1
  import requests as rq
2
  import json
3
  import os
4
+ import sys
5
+ tkn=sys.argv[1]
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)