Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ vae = AutoencoderKL.from_pretrained(
|
|
37 |
)
|
38 |
|
39 |
# Ensure model and scheduler are initialized in GPU-enabled function
|
40 |
-
pipe = StableDiffusionXLPipeline.from_pretrained(model, vae=vae
|
41 |
|
42 |
pipe.scheduler = KDPM2AncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
43 |
|
|
|
37 |
)
|
38 |
|
39 |
# Ensure model and scheduler are initialized in GPU-enabled function
|
40 |
+
pipe = StableDiffusionXLPipeline.from_pretrained(model, vae=vae).to(device)
|
41 |
|
42 |
pipe.scheduler = KDPM2AncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
43 |
|