Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,8 @@ with gr.Blocks() as demo:
|
|
68 |
|
69 |
with gr.Column():
|
70 |
num_images = gr.Slider(1, max_images, value = 1, step = 1, label = 'Number of images')
|
71 |
-
|
|
|
72 |
output2 = [gr.Image(label = '') for _ in range(6)]
|
73 |
for i, o in enumerate(output2):
|
74 |
num_models = num_images
|
|
|
68 |
|
69 |
with gr.Column():
|
70 |
num_images = gr.Slider(1, max_images, value = 1, step = 1, label = 'Number of images')
|
71 |
+
img_i = gr.Number(1, visible = False)
|
72 |
+
num_images.change(lambda 1, n: gr.update(visible = (i < n)), [img_i, num_images], o, show_progress = False)
|
73 |
output2 = [gr.Image(label = '') for _ in range(6)]
|
74 |
for i, o in enumerate(output2):
|
75 |
num_models = num_images
|