Spaces:
Runtime error
Runtime error
Efreak
commited on
Commit
•
75f2a7d
1
Parent(s):
d71ceca
silly rabbit, shits are for tricks!
Browse filesdoes anyone actually read these? i know i dont.
🎉 I'm doing all this on my tablet. fuck autocorrect...
app.py
CHANGED
@@ -26,11 +26,11 @@ def duplicate(source_url, preview_url, model_id, dst_repo, token, repo_type, nsf
|
|
26 |
|
27 |
# keep things separate, partly in case people download different files with same name (`download.zip`). Especially, it also allows saving filename to work
|
28 |
subprocess.check_call([r"mkdir","-p",dir])
|
29 |
-
subprocess.check_call([r"aria2c","-x16","--split=16",source_url,"--dir
|
30 |
|
31 |
filename=os.listdir(dir)[0].rsplit('.',1)[0]
|
32 |
-
subprocess.check_call([r"curl","https://civitai.com/api/v1/model-versions/"+model_id,
|
33 |
-
subprocess.check_call([r"curl",preview_url,"-O",filename+".preview.png"])
|
34 |
|
35 |
match repo_type:
|
36 |
case "Embedding":
|
|
|
26 |
|
27 |
# keep things separate, partly in case people download different files with same name (`download.zip`). Especially, it also allows saving filename to work
|
28 |
subprocess.check_call([r"mkdir","-p",dir])
|
29 |
+
subprocess.check_call([r"aria2c","-x16","--split=16",source_url,"--dir",dir])
|
30 |
|
31 |
filename=os.listdir(dir)[0].rsplit('.',1)[0]
|
32 |
+
subprocess.check_call([r"curl","https://civitai.com/api/v1/model-versions/"+model_id,"-O",dir+"/"+filename+".civitai.info"])
|
33 |
+
subprocess.check_call([r"curl",preview_url,"-O",dir+"/"+filename+".preview.png"])
|
34 |
|
35 |
match repo_type:
|
36 |
case "Embedding":
|