bunarivenna commited on
Commit
c725615
·
verified ·
1 Parent(s): 48e2519

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -48,7 +48,7 @@ if torch.cuda.is_available():
48
  pipe.load_lora_weights("ehristoforu/dalle-3-xl-v2", weight_name="dalle-3-xl-lora-v2.safetensors", adapter_name="dalle")
49
  pipe.set_adapters("dalle")
50
 
51
- pipe.to("cuda")
52
 
53
 
54
 
 
48
  pipe.load_lora_weights("ehristoforu/dalle-3-xl-v2", weight_name="dalle-3-xl-lora-v2.safetensors", adapter_name="dalle")
49
  pipe.set_adapters("dalle")
50
 
51
+ pipe.enable_model_cpu_offload()
52
 
53
 
54