Efreak commited on
Commit
21cc9c3
1 Parent(s): 75f2a7d

use wget to name files differently...

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -29,8 +29,8 @@ def duplicate(source_url, preview_url, model_id, dst_repo, token, repo_type, nsf
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":
 
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"wget","https://civitai.com/api/v1/model-versions/"+model_id,"-O",dir+"/"+filename+".civitai.info"])
33
+ subprocess.check_call([r"wget",preview_url,"-O",dir+"/"+filename+".preview.png"])
34
 
35
  match repo_type:
36
  case "Embedding":