Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,10 +71,10 @@ with gr.Blocks() as demo:
|
|
| 71 |
|
| 72 |
for i, o in enumerate(output2):
|
| 73 |
img_i = gr.Number(i, visible = False)
|
|
|
|
| 74 |
num_images.change(lambda i, n: gr.update(visible = (i < n)), [img_i, num_images], o, show_progress = False)
|
| 75 |
gen_event2 = gen_button2.click(lambda i, n, m, t: gen_fn(m, t) if (i < n) else None, [img_i, num_images, model_choice2, txt_input2], o)
|
| 76 |
stop_button2.click(lambda s: gr.update(interactive = False), None, stop_button2, cancels = [gen_event2])
|
| 77 |
-
num_images = gr.Slider(1, max_images, value = 1, step = 1, label = 'Number of images')
|
| 78 |
with gr.Row():
|
| 79 |
gr.HTML(
|
| 80 |
"""
|
|
|
|
| 71 |
|
| 72 |
for i, o in enumerate(output2):
|
| 73 |
img_i = gr.Number(i, visible = False)
|
| 74 |
+
num_images = gr.Slider(1, max_images, value = 1, step = 1, label = 'Number of images')
|
| 75 |
num_images.change(lambda i, n: gr.update(visible = (i < n)), [img_i, num_images], o, show_progress = False)
|
| 76 |
gen_event2 = gen_button2.click(lambda i, n, m, t: gen_fn(m, t) if (i < n) else None, [img_i, num_images, model_choice2, txt_input2], o)
|
| 77 |
stop_button2.click(lambda s: gr.update(interactive = False), None, stop_button2, cancels = [gen_event2])
|
|
|
|
| 78 |
with gr.Row():
|
| 79 |
gr.HTML(
|
| 80 |
"""
|