NickKolok commited on
Commit
7b5664d
1 Parent(s): 12bf0d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- print(os.system("ls -ltr"))
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):