stack86 commited on
Commit
b804099
·
verified ·
1 Parent(s): 1629b71

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -19,6 +19,8 @@ if torch.cuda.is_available():
19
 
20
  # pipe.vae = AutoencoderKL.from_pretrained("IDKiro/sdxs-512-0.9/vae_large") # use original VAE
21
  pipe.to("cuda")
 
 
22
 
23
  # Function
24
  @spaces.GPU(enable_queue=True)
 
19
 
20
  # pipe.vae = AutoencoderKL.from_pretrained("IDKiro/sdxs-512-0.9/vae_large") # use original VAE
21
  pipe.to("cuda")
22
+ else:
23
+ pipe = StableDiffusionPipeline.from_pretrained(repo, torch_dtype=weight_type)
24
 
25
  # Function
26
  @spaces.GPU(enable_queue=True)