DamarJati commited on
Commit
624d004
·
verified ·
1 Parent(s): 9c4729d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -15,11 +15,8 @@ pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
15
 
16
  # pipe.scheduler = DEISMultistepScheduler.from_config(pipe.scheduler.config)
17
 
18
- lora_repo = "Shakker-Labs/AWPortraitCN"
19
- trigger_word = "" # Leave trigger_word blank if not used.
20
- pipe.load_lora_weights(lora_repo, low_cpu_mem_usage=True)
21
-
22
- pipe.to("cuda")
23
 
24
  MAX_SEED = 2**32-1
25
 
 
15
 
16
  # pipe.scheduler = DEISMultistepScheduler.from_config(pipe.scheduler.config)
17
 
18
+ pipe.load_lora_weights("Shakker-Labs/AWPortraitCN2", weight_name="AWPortraitCN_2.safetensors")
19
+ pipe.fuse_lora()
 
 
 
20
 
21
  MAX_SEED = 2**32-1
22