wath5 commited on
Commit
7cd159e
1 Parent(s): 8a564e4

Public hf_hub

Browse files

Just a small change in the repo name to let people clone the space and make it work with a public hf_hub for LoRa and SDXL.

Thanks for sharing your wonderful work it's amazing !

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -19,12 +19,12 @@ os.makedirs(civitai_model_path, exist_ok=True)
19
  base_model_name = "sdxlUnstableDiffusers_v11.safetensors"
20
  base_model_path = os.path.join(civitai_model_path, base_model_name)
21
  if not os.path.exists(base_model_path):
22
- base_model_path = hf_hub_download(repo_id="Paper99/sdxlUnstableDiffusers_v11", filename=base_model_name, repo_type="model")
23
 
24
- lora_model_name = "xl_more_art-full.safetensors"
25
  lora_path = os.path.join(civitai_model_path, lora_model_name)
26
  if not os.path.exists(lora_path):
27
- lora_path = hf_hub_download(repo_id="Paper99/sdxlUnstableDiffusers_v11", filename=lora_model_name, repo_type="model")
28
 
29
  # global variable
30
  device = "cuda" if torch.cuda.is_available() else "cpu"
 
19
  base_model_name = "sdxlUnstableDiffusers_v11.safetensors"
20
  base_model_path = os.path.join(civitai_model_path, base_model_name)
21
  if not os.path.exists(base_model_path):
22
+ base_model_path = hf_hub_download(repo_id="frankjoshua/sdxlUnstableDiffusers_v11", filename=base_model_name, repo_type="model")
23
 
24
+ lora_model_name = "xl_more_art-full_v1.safetensors"
25
  lora_path = os.path.join(civitai_model_path, lora_model_name)
26
  if not os.path.exists(lora_path):
27
+ lora_path = hf_hub_download(repo_id="frankjoshua/xl_more_art-full_v1", filename=lora_model_name, repo_type="model")
28
 
29
  # global variable
30
  device = "cuda" if torch.cuda.is_available() else "cpu"