Update app.py
Browse files
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-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="
|
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.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/sdxlUnstableDiffusers_v11", filename=lora_model_name, repo_type="model")
|
28 |
|
29 |
# global variable
|
30 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|