KingNish commited on
Commit
3cb2e40
1 Parent(s): 7b84aae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -164,7 +164,7 @@ def generate(
164
  guidance_scale=0,
165
  num_inference_steps=inference_steps,
166
  generator=generator,
167
- num_images_per_prompt=num_imgs,
168
  use_resolution_binning=use_resolution_binning,
169
  output_type="pil",
170
  ).images
@@ -218,13 +218,13 @@ with gr.Blocks() as demo:
218
  visible=True,
219
  )
220
 
221
- num_imgs = gr.Slider(
222
- label="Num Images",
223
- minimum=1,
224
- maximum=8,
225
- step=1,
226
- value=1,
227
- )
228
  style_selection = gr.Radio(
229
  show_label=True,
230
  container=True,
@@ -292,7 +292,7 @@ with gr.Blocks() as demo:
292
  negative_prompt,
293
  style_selection,
294
  use_negative_prompt,
295
- num_imgs,
296
  seed,
297
  width,
298
  height,
 
164
  guidance_scale=0,
165
  num_inference_steps=inference_steps,
166
  generator=generator,
167
+ num_images_per_prompt=NUM_IMAGES_PER_PROMPT,
168
  use_resolution_binning=use_resolution_binning,
169
  output_type="pil",
170
  ).images
 
218
  visible=True,
219
  )
220
 
221
+ # num_imgs = gr.Slider(
222
+ # label="Num Images",
223
+ # minimum=1,
224
+ # maximum=8,
225
+ # step=1,
226
+ # value=1,
227
+ # )
228
  style_selection = gr.Radio(
229
  show_label=True,
230
  container=True,
 
292
  negative_prompt,
293
  style_selection,
294
  use_negative_prompt,
295
+ # num_imgs,
296
  seed,
297
  width,
298
  height,