Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def infer(prompt, samples, steps, scale, seed):
|
|
28 |
generator = torch.Generator(device=device).manual_seed(seed)
|
29 |
|
30 |
#If you are running locally with CPU, you can remove the `with autocast("cuda")`
|
31 |
-
with autocast("
|
32 |
images_list = pipe(
|
33 |
[prompt] * samples,
|
34 |
num_inference_steps=steps,
|
28 |
generator = torch.Generator(device=device).manual_seed(seed)
|
29 |
|
30 |
#If you are running locally with CPU, you can remove the `with autocast("cuda")`
|
31 |
+
with autocast("cpu"):
|
32 |
images_list = pipe(
|
33 |
[prompt] * samples,
|
34 |
num_inference_steps=steps,
|