KingNish commited on
Commit
0b735f6
·
verified ·
1 Parent(s): 535533b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -30,8 +30,7 @@ if torch.cuda.is_available():
30
  )
31
  pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
32
  pipe.load_lora_weights("ehristoforu/dalle-3-xl-v2", weight_name="dalle-3-xl-lora-v2.safetensors", adapter_name="dalle2")
33
- pipe.load_lora_weights("ehristoforu/dalle-3-xl-v2", weight_name="dalle-3-xl-lora-v2.safetensors", adapter_name="dalle1")
34
- pipe.set_adapters(["dalle1", "dalle2"], adapter_weights=[1.0, 0.5])
35
 
36
  pipe.to("cuda")
37
 
 
30
  )
31
  pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
32
  pipe.load_lora_weights("ehristoforu/dalle-3-xl-v2", weight_name="dalle-3-xl-lora-v2.safetensors", adapter_name="dalle2")
33
+ pipe.set_adapters(["dalle1"], adapter_weights=[0.5])
 
34
 
35
  pipe.to("cuda")
36