BennoKrojer commited on
Commit
0b7b279
1 Parent(s): 168580e
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -6,9 +6,11 @@ import json
6
  prefix = 'https://raw.githubusercontent.com/BennoKrojer/imagecode-val-set/main/image-sets-val/'
7
  set2ids = json.load(open('set2ids.json', 'r'))
8
 
 
 
9
  images = [prefix+'/MSR-VTT-videoTestVideo_video7016-shot1_2/'+i for i in set2ids['MSR-VTT-videoTestVideo_video7016-shot1_2']]
10
 
11
  index= int(st.number_input('Image Index from 0 to 9', value=0, min_value=0, max_value=len(images)-1))
12
 
13
- st.image(images[index], use_column_width=True)
14
- st.image(images, width=100, caption=list(range(10)))
 
6
  prefix = 'https://raw.githubusercontent.com/BennoKrojer/imagecode-val-set/main/image-sets-val/'
7
  set2ids = json.load(open('set2ids.json', 'r'))
8
 
9
+ col1, col2 = st.columns(2)
10
+
11
  images = [prefix+'/MSR-VTT-videoTestVideo_video7016-shot1_2/'+i for i in set2ids['MSR-VTT-videoTestVideo_video7016-shot1_2']]
12
 
13
  index= int(st.number_input('Image Index from 0 to 9', value=0, min_value=0, max_value=len(images)-1))
14
 
15
+ col1.image(images[index], use_column_width=True)
16
+ col2.image(images, width=100, caption=list(range(10)))