FredZhang7 commited on
Commit
34a90c1
1 Parent(s): b2449ef

try wget instead of aria2c

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -70,8 +70,8 @@ except(FileExistsError):
70
  print("exist")
71
 
72
  print("downloading model")
73
- os.system(r"aria2c https://huggingface.co/FredZhang7/paint-journey-v2/resolve/main/paint_journey_v2_cpu_only.ckpt -d "+user_home+"/stable-diffusion-webui/models/Stable-diffusion -o paint_journey_v2_cpu_only.ckpt")
74
- os.system(r"aria2c https://huggingface.co/FredZhang7/paint-journey-v2/resolve/main/paint_journey_v2.vae.pt -d "+user_home+"/stable-diffusion-webui/models/Stable-diffusion -o paint_journey_v2_cpu_only.vae.pt")
75
 
76
 
77
  #strt webui
 
70
  print("exist")
71
 
72
  print("downloading model")
73
+ os.system(f"wget -q https://huggingface.co/FredZhang7/paint-journey-v2/resolve/main/paint_journey_v2_cpu_only.ckpt -O {user_home}/stable-diffusion-webui/models/Stable-diffusion/paint_journey_v2_cpu_only.ckpt")
74
+ os.system(f"wget -q https://huggingface.co/FredZhang7/paint-journey-v2/resolve/main/paint_journey_v2.vae.pt -O {user_home}/stable-diffusion-webui/models/Stable-diffusion/paint_journey_v2_cpu_only.vae.pt")
75
 
76
 
77
  #strt webui