Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -68,11 +68,11 @@ with gr.Blocks() as demo:
|
|
68 |
)
|
69 |
|
70 |
with gr.Row():
|
71 |
-
output2 = [gr.Image(label = '') for _ in range(
|
72 |
|
73 |
for i, o in enumerate(output2):
|
74 |
img_i = gr.Number(i, visible = False)
|
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():
|
|
|
68 |
)
|
69 |
|
70 |
with gr.Row():
|
71 |
+
output2 = [gr.Image(label = '', min_width=480) for _ in range(num_images)]
|
72 |
|
73 |
for i, o in enumerate(output2):
|
74 |
img_i = gr.Number(i, visible = False)
|
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():
|