John6666 commited on
Commit
ecc4c3e
1 Parent(s): afdd0ff

Upload 3 files

Browse files
convert_url_to_diffusers_sdxl_gr.py CHANGED
@@ -297,11 +297,11 @@ def convert_url_to_diffusers_repo(dl_url, new_repo_id, hf_token, civitai_key="",
297
  if not is_repo_name(new_repo_id):
298
  print(f"Invalid repo name: {new_repo_id}")
299
  progress(1, desc=f"Invalid repo name: {new_repo_id}")
300
- return ""
301
  if is_repo_exists(new_repo_id):
302
  print(f"Repo already exists: {new_repo_id}")
303
  progress(1, desc=f"Repo already exists: {new_repo_id}")
304
- return ""
305
  lora_dict = {lora1: lora1s, lora2: lora2s, lora3: lora3s, lora4: lora4s, lora5: lora5s}
306
  if None in lora_dict.keys(): del lora_dict[None]
307
  new_path = convert_url_to_diffusers_sdxl(dl_url, civitai_key, half, vae, scheduler, lora_dict)
 
297
  if not is_repo_name(new_repo_id):
298
  print(f"Invalid repo name: {new_repo_id}")
299
  progress(1, desc=f"Invalid repo name: {new_repo_id}")
300
+ return gr.update(value=repo_urls, choices=repo_urls), gr.update(value="")
301
  if is_repo_exists(new_repo_id):
302
  print(f"Repo already exists: {new_repo_id}")
303
  progress(1, desc=f"Repo already exists: {new_repo_id}")
304
+ return gr.update(value=repo_urls, choices=repo_urls), gr.update(value="")
305
  lora_dict = {lora1: lora1s, lora2: lora2s, lora3: lora3s, lora4: lora4s, lora5: lora5s}
306
  if None in lora_dict.keys(): del lora_dict[None]
307
  new_path = convert_url_to_diffusers_sdxl(dl_url, civitai_key, half, vae, scheduler, lora_dict)