ksyint commited on
Commit
15542be
Β·
verified Β·
1 Parent(s): a05f2ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ adapter_id = "ksyint/teu_lora"
8
 
9
  pipe = AutoPipelineForText2Image.from_pretrained(model_id, torch_dtype=torch.float32, variant="fp16")
10
  pipe.scheduler = DDPMScheduler.from_config(pipe.scheduler.config)
11
- pipe.to("cpu")
12
 
13
  pipe.load_lora_weights(adapter_id)
14
  pipe.fuse_lora()
 
8
 
9
  pipe = AutoPipelineForText2Image.from_pretrained(model_id, torch_dtype=torch.float32, variant="fp16")
10
  pipe.scheduler = DDPMScheduler.from_config(pipe.scheduler.config)
11
+ pipe.to("cuda")
12
 
13
  pipe.load_lora_weights(adapter_id)
14
  pipe.fuse_lora()