Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -219,8 +219,8 @@ def download_safetensors(safetensors_url):
|
|
219 |
if "drive.google.com" in safetensors_url:
|
220 |
gdown.download(url=ckpt_url, output="model.safetensors", quiet=False, fuzzy=True)
|
221 |
else:
|
222 |
-
os.system(f"wget
|
223 |
-
subprocess.run(['ls', '-ltr'], stdout=subprocess.PIPE).stdout.decode('utf-8')
|
224 |
return "download safetensors done!"
|
225 |
|
226 |
def from_safetensors_to_ckpt(ckpt_name):
|
|
|
219 |
if "drive.google.com" in safetensors_url:
|
220 |
gdown.download(url=ckpt_url, output="model.safetensors", quiet=False, fuzzy=True)
|
221 |
else:
|
222 |
+
os.system(f"wget {safetensors_url} -O model.safetensors")
|
223 |
+
print(subprocess.run(['ls', '-ltr'], stdout=subprocess.PIPE).stdout.decode('utf-8'))
|
224 |
return "download safetensors done!"
|
225 |
|
226 |
def from_safetensors_to_ckpt(ckpt_name):
|