Spaces:
Runtime error
Runtime error
Update app.py
Browse filesdevice = 'cuda' if torch.cuda.is_available() else 'cpu'
pipe.to(device)
app.py
CHANGED
|
@@ -12,7 +12,9 @@ pipe = StableDiffusionXLPipeline.from_pretrained(
|
|
| 12 |
variant="fp16",
|
| 13 |
)
|
| 14 |
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
| 15 |
-
|
|
|
|
|
|
|
| 16 |
|
| 17 |
def launch(prompt, negative_prompt):
|
| 18 |
prompt += " ,awesome, pixel art"
|
|
|
|
| 12 |
variant="fp16",
|
| 13 |
)
|
| 14 |
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
| 15 |
+
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
| 16 |
+
pipe.to(device)
|
| 17 |
+
|
| 18 |
|
| 19 |
def launch(prompt, negative_prompt):
|
| 20 |
prompt += " ,awesome, pixel art"
|