Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
import os, gdown, gc
|
2 |
import numpy as np
|
3 |
import gradio as gr
|
4 |
from diffusers import FlaxStableDiffusionPipeline, StableDiffusionPipeline
|
@@ -218,7 +218,7 @@ def download_safetensors(safetensors_url):
|
|
218 |
gdown.download(url=ckpt_url, output="model.safetensors", quiet=False, fuzzy=True)
|
219 |
else:
|
220 |
os.system(f"wget -v {safetensors_url} -O model.safetensors")
|
221 |
-
|
222 |
return "download safetensors done!"
|
223 |
|
224 |
def from_safetensors_to_ckpt(ckpt_name):
|
|
|
1 |
+
import os, gdown, gc, subprocess
|
2 |
import numpy as np
|
3 |
import gradio as gr
|
4 |
from diffusers import FlaxStableDiffusionPipeline, StableDiffusionPipeline
|
|
|
218 |
gdown.download(url=ckpt_url, output="model.safetensors", quiet=False, fuzzy=True)
|
219 |
else:
|
220 |
os.system(f"wget -v {safetensors_url} -O model.safetensors")
|
221 |
+
subprocess.run(['ls', '-ltr'], stdout=subprocess.PIPE).stdout.decode('utf-8')
|
222 |
return "download safetensors done!"
|
223 |
|
224 |
def from_safetensors_to_ckpt(ckpt_name):
|