Uthar commited on
Commit
671b6e3
1 Parent(s): 5c49bfc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -179,7 +179,7 @@ with gr.Blocks(fill_width=True, head=js) as demo:
179
  seed2 = gr.Slider(label="Seed", info="Randomize Seed if -1.", minimum=-1, maximum=MAX_SEED, step=1, value=-1)
180
  seed_rand2 = gr.Button("Randomize Seed", size="sm", variant="secondary")
181
  seed_rand2.click(randomize_seed, None, [seed2], queue=False)
182
- num_images = gr.Slider(1, max_images, value=max_images / 2, step=1, label='Number of images')
183
  with gr.Row():
184
  gen_button2 = gr.Button('Let the machine halucinate', variant='primary', scale=2)
185
 
@@ -188,7 +188,7 @@ with gr.Blocks(fill_width=True, head=js) as demo:
188
  with gr.Row():
189
  output2 = [gr.Image(label='', show_download_button=True, elem_classes="output",
190
  interactive=False, width=112, height=112, visible=True, format="png",
191
- show_share_button=False, show_label=False) for _ in range(num_images)]
192
 
193
  with gr.Column(scale=2):
194
  gallery2 = gr.Gallery(label="Output", show_download_button=True, elem_classes="gallery",
 
179
  seed2 = gr.Slider(label="Seed", info="Randomize Seed if -1.", minimum=-1, maximum=MAX_SEED, step=1, value=-1)
180
  seed_rand2 = gr.Button("Randomize Seed", size="sm", variant="secondary")
181
  seed_rand2.click(randomize_seed, None, [seed2], queue=False)
182
+ num_images = gr.Slider(1, max_images, value=max_images, step=1, label='Number of images')
183
  with gr.Row():
184
  gen_button2 = gr.Button('Let the machine halucinate', variant='primary', scale=2)
185
 
 
188
  with gr.Row():
189
  output2 = [gr.Image(label='', show_download_button=True, elem_classes="output",
190
  interactive=False, width=112, height=112, visible=True, format="png",
191
+ show_share_button=False, show_label=False) for _ in range(max_images)]
192
 
193
  with gr.Column(scale=2):
194
  gallery2 = gr.Gallery(label="Output", show_download_button=True, elem_classes="gallery",