Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 |
|