Spaces:
Running
Running
Upload convert_url_to_diffusers_sd_gr.py
Browse files
convert_url_to_diffusers_sd_gr.py
CHANGED
@@ -283,7 +283,7 @@ def convert_url_to_diffusers_sd(url, civitai_key="", hf_token="", is_upload_sf=F
|
|
283 |
else:
|
284 |
pipe.vae = AutoencoderKL.from_pretrained(vae)
|
285 |
else:
|
286 |
-
new_vae_file = get_download_file(temp_dir, vae, civitai_key)
|
287 |
if new_vae_file and half:
|
288 |
pipe.vae = AutoencoderKL.from_single_file(new_vae_file, torch_dtype=torch.float16)
|
289 |
elif new_vae_file:
|
|
|
283 |
else:
|
284 |
pipe.vae = AutoencoderKL.from_pretrained(vae)
|
285 |
else:
|
286 |
+
new_vae_file = get_download_file(temp_dir, vae, civitai_key, hf_token)
|
287 |
if new_vae_file and half:
|
288 |
pipe.vae = AutoencoderKL.from_single_file(new_vae_file, torch_dtype=torch.float16)
|
289 |
elif new_vae_file:
|