John6666 commited on
Commit
be24bb2
1 Parent(s): 4326a08

Upload convert_url_to_diffusers_sdxl_gr.py

Browse files
convert_url_to_diffusers_sdxl_gr.py CHANGED
@@ -273,7 +273,7 @@ def convert_url_to_diffusers_sdxl(url, civitai_key="", hf_token="", is_upload_sf
273
  else:
274
  pipe.vae = AutoencoderKL.from_pretrained(vae)
275
  else:
276
- new_vae_file = get_download_file(temp_dir, vae, civitai_key)
277
  if new_vae_file and half:
278
  pipe.vae = AutoencoderKL.from_single_file(new_vae_file, torch_dtype=torch.float16)
279
  elif new_vae_file:
 
273
  else:
274
  pipe.vae = AutoencoderKL.from_pretrained(vae)
275
  else:
276
+ new_vae_file = get_download_file(temp_dir, vae, civitai_key, hf_token)
277
  if new_vae_file and half:
278
  pipe.vae = AutoencoderKL.from_single_file(new_vae_file, torch_dtype=torch.float16)
279
  elif new_vae_file: