Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -40,14 +40,12 @@ if torch.cuda.is_available():
|
|
40 |
"fluently/Fluently-XL-Final",
|
41 |
torch_dtype=torch.float16,
|
42 |
use_safetensors=True,
|
43 |
-
)
|
44 |
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
45 |
|
46 |
|
47 |
pipe.load_lora_weights("ehristoforu/dalle-3-xl-v2", weight_name="dalle-3-xl-lora-v2.safetensors", adapter_name="dalle")
|
48 |
pipe.set_adapters("dalle")
|
49 |
-
|
50 |
-
pipe.to("cuda")
|
51 |
|
52 |
|
53 |
|
|
|
40 |
"fluently/Fluently-XL-Final",
|
41 |
torch_dtype=torch.float16,
|
42 |
use_safetensors=True,
|
43 |
+
).to("cuda")
|
44 |
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
45 |
|
46 |
|
47 |
pipe.load_lora_weights("ehristoforu/dalle-3-xl-v2", weight_name="dalle-3-xl-lora-v2.safetensors", adapter_name="dalle")
|
48 |
pipe.set_adapters("dalle")
|
|
|
|
|
49 |
|
50 |
|
51 |
|