Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|