Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 -
|
31 |
-
os.system(
|
|
|
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():
|