Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,8 @@ if torch.cuda.is_available():
|
|
29 |
add_watermarker=False
|
30 |
)
|
31 |
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
32 |
-
|
|
|
33 |
pipe.to("cuda")
|
34 |
|
35 |
|
|
|
29 |
add_watermarker=False
|
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="dalle")
|
33 |
+
pipe.set_adapters("dalle", adapter_weights=[0.7])
|
34 |
pipe.to("cuda")
|
35 |
|
36 |
|