John6666 commited on
Commit
fea0c3a
1 Parent(s): a8ce16f

Upload convert_url_to_diffusers_sd_gr.py

Browse files
Files changed (1) hide show
  1. convert_url_to_diffusers_sd_gr.py +1 -1
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: