aanchal77 commited on
Commit
520d1f4
·
verified ·
1 Parent(s): d55f605

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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"