NickKolok commited on
Commit
1f9e552
1 Parent(s): 2ec32e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -27,8 +27,9 @@ def to_pt():
27
  return "convert to pt done!"
28
 
29
  def from_safetensors_to_pt():
30
- os.system("wget -q https://raw.githubusercontent.com/huggingface/diffusers/v0.13.1/scripts/convert_original_stable_diffusion_to_diffusers.py")
31
- os.system(f"python3 convert_original_stable_diffusion_to_diffusers.py --from_safetensors --checkpoint_path model.safetensors --dump_path pt")
 
32
  return "convert to pt done!"
33
 
34
  def from_ckpt_to_safetensors():
 
27
  return "convert to pt done!"
28
 
29
  def from_safetensors_to_pt():
30
+ os.system("wget -v https://raw.githubusercontent.com/huggingface/diffusers/v0.13.1/scripts/convert_original_stable_diffusion_to_diffusers.py")
31
+ os.system("mkdir -p ./pt")
32
+ os.system(f"python3 convert_original_stable_diffusion_to_diffusers.py --from_safetensors --checkpoint_path model.safetensors --dump_path ./pt")
33
  return "convert to pt done!"
34
 
35
  def from_ckpt_to_safetensors():