Escape ampersands in URLs
Browse files... otherwise civitai URLs ruin the process :(
app.py
CHANGED
@@ -11,14 +11,14 @@ def download_ckpt(ckpt_url):
|
|
11 |
if "drive.google.com" in ckpt_url:
|
12 |
gdown.download(url=ckpt_url, output="model.ckpt", quiet=False, fuzzy=True)
|
13 |
else:
|
14 |
-
os.system(f"wget {ckpt_url} -O model.ckpt")
|
15 |
return "download ckpt done!"
|
16 |
|
17 |
def download_vae(vae_url):
|
18 |
if "drive.google.com" in vae_url:
|
19 |
gdown.download(url=vae_url, output="vae.ckpt", quiet=False, fuzzy=True)
|
20 |
else:
|
21 |
-
os.system(f"wget {vae_url} -O vae.ckpt")
|
22 |
return "download vae done!"
|
23 |
|
24 |
def to_pt():
|
|
|
11 |
if "drive.google.com" in ckpt_url:
|
12 |
gdown.download(url=ckpt_url, output="model.ckpt", quiet=False, fuzzy=True)
|
13 |
else:
|
14 |
+
os.system(f"wget '{ckpt_url}' -O model.ckpt")
|
15 |
return "download ckpt done!"
|
16 |
|
17 |
def download_vae(vae_url):
|
18 |
if "drive.google.com" in vae_url:
|
19 |
gdown.download(url=vae_url, output="vae.ckpt", quiet=False, fuzzy=True)
|
20 |
else:
|
21 |
+
os.system(f"wget '{vae_url}' -O vae.ckpt")
|
22 |
return "download vae done!"
|
23 |
|
24 |
def to_pt():
|