Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
| 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 |
|