Update app.py
Browse files
app.py
CHANGED
@@ -231,7 +231,7 @@ with gr.Blocks(fill_width=True, head=js) as demo:
|
|
231 |
seed2 = gr.Slider(label="Seed", info="Randomize Seed if -1.", minimum=-1, maximum=MAX_SEED, step=1, value=-1)
|
232 |
seed_rand2 = gr.Button("Randomize Seed", size="sm", variant="secondary")
|
233 |
seed_rand2.click(randomize_seed, None, [seed2], queue=False)
|
234 |
-
num_images = gr.Slider(1, max_images
|
235 |
with gr.Row():
|
236 |
gen_button2 = gr.Button('Let the machine halucinate', variant='primary', scale=2)
|
237 |
#stop_button2 = gr.Button('Stop', variant='stop', interactive=False, scale=1)
|
|
|
231 |
seed2 = gr.Slider(label="Seed", info="Randomize Seed if -1.", minimum=-1, maximum=MAX_SEED, step=1, value=-1)
|
232 |
seed_rand2 = gr.Button("Randomize Seed", size="sm", variant="secondary")
|
233 |
seed_rand2.click(randomize_seed, None, [seed2], queue=False)
|
234 |
+
num_images = gr.Slider(1, max_images, value=max_images/2, step=1, label='Number of images')
|
235 |
with gr.Row():
|
236 |
gen_button2 = gr.Button('Let the machine halucinate', variant='primary', scale=2)
|
237 |
#stop_button2 = gr.Button('Stop', variant='stop', interactive=False, scale=1)
|