yonatanbitton commited on
Commit
ae378cc
·
1 Parent(s): f15f93d
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -61,7 +61,7 @@ with demo:
61
  slider = gr.Slider(minimum=0, maximum=dataset_size)
62
  with gr.Row():
63
  index = slider.value
64
- if index > dataset_size:
65
  index = 0
66
  target_size = wmtis[index]['normal_image'].size
67
  natural_outputs = add_column_by_key('natural', target_size)
 
61
  slider = gr.Slider(minimum=0, maximum=dataset_size)
62
  with gr.Row():
63
  index = slider.value
64
+ if index >= dataset_size:
65
  index = 0
66
  target_size = wmtis[index]['normal_image'].size
67
  natural_outputs = add_column_by_key('natural', target_size)