vilarin commited on
Commit
a69ba3c
·
verified ·
1 Parent(s): b54258a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -37,8 +37,7 @@ vae = AutoencoderKL.from_pretrained(
37
  )
38
 
39
  # Ensure model and scheduler are initialized in GPU-enabled function
40
- if torch.cuda.is_available():
41
- pipe = StableDiffusionXLPipeline.from_pretrained(model, vae=vae, torch_dtype=torch.float16).to(device)
42
 
43
  pipe.scheduler = KDPM2AncestralDiscreteScheduler.from_config(pipe.scheduler.config)
44
 
 
37
  )
38
 
39
  # Ensure model and scheduler are initialized in GPU-enabled function
40
+ pipe = StableDiffusionXLPipeline.from_pretrained(model, vae=vae, torch_dtype=torch.float16).to(device)
 
41
 
42
  pipe.scheduler = KDPM2AncestralDiscreteScheduler.from_config(pipe.scheduler.config)
43