ford442 commited on
Commit
e74e0f4
·
1 Parent(s): 99a67da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -170,7 +170,7 @@ def generate_60(
170
  global models
171
  pipe = models[model_choice]
172
  seed = int(randomize_seed_fn(seed, randomize_seed))
173
- generator = torch.Generator(device='cpu').manual_seed(seed)
174
  prompt, negative_prompt = apply_style(style_selection, prompt, negative_prompt)
175
  options = {
176
  "prompt": [prompt] * num_images,
@@ -220,7 +220,7 @@ def generate_90(
220
  global models
221
  pipe = models[model_choice]
222
  seed = int(randomize_seed_fn(seed, randomize_seed))
223
- generator = torch.Generator(device='cpu').manual_seed(seed)
224
  prompt, negative_prompt = apply_style(style_selection, prompt, negative_prompt)
225
  options = {
226
  "prompt": [prompt] * num_images,
 
170
  global models
171
  pipe = models[model_choice]
172
  seed = int(randomize_seed_fn(seed, randomize_seed))
173
+ generator = torch.Generator(device='cuda').manual_seed(seed)
174
  prompt, negative_prompt = apply_style(style_selection, prompt, negative_prompt)
175
  options = {
176
  "prompt": [prompt] * num_images,
 
220
  global models
221
  pipe = models[model_choice]
222
  seed = int(randomize_seed_fn(seed, randomize_seed))
223
+ generator = torch.Generator(device='cuda').manual_seed(seed)
224
  prompt, negative_prompt = apply_style(style_selection, prompt, negative_prompt)
225
  options = {
226
  "prompt": [prompt] * num_images,