concauu commited on
Commit
ab7d59f
·
verified ·
1 Parent(s): 39b24f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -51,7 +51,7 @@ def generate_image(prompt):
51
  guidance_scale=3.5,
52
  num_inference_steps=50,
53
  max_sequence_length=512,
54
- generator=torch.Generator("cpu").manual_seed(0)
55
  ).images[0]
56
  except Exception as e:
57
  # Optionally, handle errors (you can also return a default error image)
 
51
  guidance_scale=3.5,
52
  num_inference_steps=50,
53
  max_sequence_length=512,
54
+ generator=torch.Generator("gpu").manual_seed(0)
55
  ).images[0]
56
  except Exception as e:
57
  # Optionally, handle errors (you can also return a default error image)