hylee commited on
Commit
fec2c64
1 Parent(s): bbc8169

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -123,7 +123,7 @@ def inference(model_name, prompt, guidance, steps, n_images=1, width=512, height
123
  if seed == 0:
124
  seed = random.randint(0, 2147483647)
125
 
126
- generator = torch.Generator('cuda').manual_seed(seed)
127
 
128
  try:
129
  if img is not None:
 
123
  if seed == 0:
124
  seed = random.randint(0, 2147483647)
125
 
126
+ generator = torch.Generator('cpu').manual_seed(seed)
127
 
128
  try:
129
  if img is not None: