BennoKrojer commited on
Commit
a9ee5f5
1 Parent(s): 84969fb

load image list

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ set2ids = json.load(open('set2ids.json', 'r'))
8
 
9
  images = set2ids['MSR-VTT-videoTestVideo_video7016-shot1_2']
10
 
11
- index= int(st.number_input('Index'))
12
 
13
  if st.button('Next'):
14
  index+=1
 
8
 
9
  images = set2ids['MSR-VTT-videoTestVideo_video7016-shot1_2']
10
 
11
+ index= int(st.number_input('Index', value=0, min_value=0, max_value=len(images)-1))
12
 
13
  if st.button('Next'):
14
  index+=1