Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ checkpoints = {
|
|
23 |
# Ensure model and scheduler are initialized in GPU-enabled function
|
24 |
if torch.cuda.is_available():
|
25 |
pipe = StableDiffusionXLPipeline.from_pretrained(base, torch_dtype=torch.float16, variant="fp16").to("cuda")
|
26 |
-
else
|
27 |
pipe = StableDiffusionXLPipeline.from_pretrained(base, torch_dtype=torch.float16, variant="fp16")
|
28 |
|
29 |
if SAFETY_CHECKER:
|
|
|
23 |
# Ensure model and scheduler are initialized in GPU-enabled function
|
24 |
if torch.cuda.is_available():
|
25 |
pipe = StableDiffusionXLPipeline.from_pretrained(base, torch_dtype=torch.float16, variant="fp16").to("cuda")
|
26 |
+
else:
|
27 |
pipe = StableDiffusionXLPipeline.from_pretrained(base, torch_dtype=torch.float16, variant="fp16")
|
28 |
|
29 |
if SAFETY_CHECKER:
|