ford442 commited on
Commit
9f0ce3e
·
1 Parent(s): 2774ee0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -142,7 +142,7 @@ def generate(
142
  global models
143
  pipe = models[model_choice]
144
  seed = int(randomize_seed_fn(seed, randomize_seed))
145
- generator = torch.Generator().manual_seed(seed)
146
 
147
  prompt, negative_prompt = apply_style(style_selection, prompt, negative_prompt)
148
 
 
142
  global models
143
  pipe = models[model_choice]
144
  seed = int(randomize_seed_fn(seed, randomize_seed))
145
+ generator = torch.Generator(device=device).manual_seed(seed)
146
 
147
  prompt, negative_prompt = apply_style(style_selection, prompt, negative_prompt)
148