Spaces:
vilarin
/
Running on Zero

vilarin commited on
Commit
82b5071
·
verified ·
1 Parent(s): 6bdd8eb

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
 
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
 
43