Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,8 @@ pipe = StableDiffusionPipeline.from_pretrained(
|
|
| 9 |
).to("cuda")
|
| 10 |
|
| 11 |
# Load LoRA weights from the 'lora' folder
|
| 12 |
-
pipe.load_attn_procs("./lora")
|
|
|
|
| 13 |
|
| 14 |
# Move to GPU if available
|
| 15 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
|
| 9 |
).to("cuda")
|
| 10 |
|
| 11 |
# Load LoRA weights from the 'lora' folder
|
| 12 |
+
#pipe.load_attn_procs("./lora")
|
| 13 |
+
pipe.load_lora_weights("./lora")
|
| 14 |
|
| 15 |
# Move to GPU if available
|
| 16 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|