Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,8 +28,10 @@ def to_pt():
|
|
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():
|
|
|
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 |
+
print(subprocess.run(['ls', '-ltr'], stdout=subprocess.PIPE).stdout.decode('utf-8'))
|
32 |
os.system("mkdir -p ./pt")
|
33 |
os.system(f"python3 convert_original_stable_diffusion_to_diffusers.py --from_safetensors --checkpoint_path model.safetensors --dump_path ./pt")
|
34 |
+
print(subprocess.run(['ls', '-ltr'], stdout=subprocess.PIPE).stdout.decode('utf-8'))
|
35 |
return "convert to pt done!"
|
36 |
|
37 |
def from_ckpt_to_safetensors():
|