lsb commited on
Commit
d6c27f8
1 Parent(s): 3ff4358

Revert "more images"

Browse files

This reverts commit 3ff4358a77f1c77b740d33c610be121297020d4b.

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -99,7 +99,7 @@ def app(prompt, negative_prompt, mask_text, num_inference_steps, controlnet_cond
99
  cols = 1
100
  rows = 2
101
  else:
102
- cols = 2 if count % 2 == 0 else (3 if count % 3 == 0 else 1)
103
  rows = count // cols
104
  return make_image_grid(all_images, cols=cols, rows=rows)
105
 
@@ -117,7 +117,7 @@ iface = gr.Interface(
117
  gr.Number(label="Width", value=default_width, minimum=256, maximum=2048, precision=0),
118
  gr.Number(label="Height", value=default_height, minimum=256, maximum=2048, precision=0),
119
  gr.Number(label="Random Number Seed", value=42, minimum=0, maximum=2**32-1, precision=0),
120
- gr.Radio(label="Number of Images to Generate with Subsequent Consecutive Seeds", choices=[1, 2, 4, 6, 10, 15], value=2),
121
  ],
122
  "image",
123
  )
 
99
  cols = 1
100
  rows = 2
101
  else:
102
+ cols = 2 if count % 2 == 0 else 1
103
  rows = count // cols
104
  return make_image_grid(all_images, cols=cols, rows=rows)
105
 
 
117
  gr.Number(label="Width", value=default_width, minimum=256, maximum=2048, precision=0),
118
  gr.Number(label="Height", value=default_height, minimum=256, maximum=2048, precision=0),
119
  gr.Number(label="Random Number Seed", value=42, minimum=0, maximum=2**32-1, precision=0),
120
+ gr.Radio(label="Number of Images to Generate with Subsequent Consecutive Seeds", choices=[1, 2, 4, 6, 10], value=2),
121
  ],
122
  "image",
123
  )