KingNish commited on
Commit
2fbf187
1 Parent(s): db43e18

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -17,7 +17,10 @@ dtype = torch.float16
17
  vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
18
 
19
  repo = "fluently/Fluently-XL-Final"
20
- pipe = StableDiffusionXLPipeline.from_pretrained(repo, torch_dtype=torch.float16, vae=vae).to(device)
 
 
 
21
 
22
  help_text = """
23
  To optimize image results:
 
17
  vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
18
 
19
  repo = "fluently/Fluently-XL-Final"
20
+ pipe = StableDiffusionXLPipeline.from_pretrained(repo, torch_dtype=torch.float16, vae=vae)
21
+ pipe.load_lora_weights("KingNish/Better-Image-XL-Lora", weight_name="example-03.safetensors", adapter_name="lora")
22
+ pipe.set_adapters("lora")
23
+ pipe.to("cuda")
24
 
25
  help_text = """
26
  To optimize image results: