John6666 commited on
Commit
c7ec72f
1 Parent(s): eb7d0ba

Upload convert_url_to_diffusers_sdxl_gr.py

Browse files
convert_url_to_diffusers_sdxl_gr.py CHANGED
@@ -225,7 +225,7 @@ def convert_url_to_diffusers_sdxl(url, civitai_key="", is_upload_sf=False, half=
225
  new_repo_name = Path(new_file).stem.replace(" ", "_").replace(",", "_").replace(".", "_") #
226
 
227
  pipe = None
228
- if is_repo_name(new_file):
229
  if half:
230
  pipe = StableDiffusionXLPipeline.from_pretrained(new_file, use_safetensors=True, torch_dtype=torch.float16)
231
  else:
 
225
  new_repo_name = Path(new_file).stem.replace(" ", "_").replace(",", "_").replace(".", "_") #
226
 
227
  pipe = None
228
+ if is_repo_name(url):
229
  if half:
230
  pipe = StableDiffusionXLPipeline.from_pretrained(new_file, use_safetensors=True, torch_dtype=torch.float16)
231
  else: