Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ with gr.Blocks() as demo:
|
|
58 |
for i, o in enumerate(output2):
|
59 |
num_models = num_images
|
60 |
img_i = gr.Number(i, visible = False)
|
61 |
-
num_images.change(lambda i, n: gr.update(visible = (i < n)), [img_i, num_images], o, show_progress = False)
|
62 |
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)
|
63 |
stop_button2.click(lambda s: gr.update(interactive = False), None, stop_button2, cancels = [gen_event2])
|
64 |
with gr.Row():
|
|
|
58 |
for i, o in enumerate(output2):
|
59 |
num_models = num_images
|
60 |
img_i = gr.Number(i, visible = False)
|
61 |
+
#num_images.change(lambda i, n: gr.update(visible = (i < n)), [img_i, num_images], o, show_progress = False)
|
62 |
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)
|
63 |
stop_button2.click(lambda s: gr.update(interactive = False), None, stop_button2, cancels = [gen_event2])
|
64 |
with gr.Row():
|