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