Spaces:
Running
Running
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, torch_dtype=
|
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, torch_dtype="auto").to(device)
|
41 |
|
42 |
pipe.scheduler = KDPM2AncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
43 |
|