laminar commited on
Commit
ea99a58
1 Parent(s): 7119e56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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("cuda"):
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,