Spaces:
Running
on
Zero
Running
on
Zero
Public hf_hub
Browse filesJust 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 !
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="
|
23 |
|
24 |
-
lora_model_name = "xl_more_art-
|
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="
|
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"
|