Yntec commited on
Commit
e5168fc
β€’
1 Parent(s): 6271f97

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- num_images.change(lambda i, n: gr.update(visible = (i < n)), [img_i, num_images], o, show_progress = False)
 
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