BennoKrojer commited on
Commit
17bb1f6
1 Parent(s): 62635cf

load image list

Browse files
Files changed (2) hide show
  1. app.py +7 -4
  2. set2ids.json +0 -0
app.py CHANGED
@@ -1,14 +1,17 @@
1
  import streamlit as st
 
 
 
2
 
3
  prefix = 'https://raw.githubusercontent.com/BennoKrojer/imagecode-val-set/main/image-sets-val/'
 
4
 
5
- st.image(prefix + 'MSR-VTT-videoTestVideo_video7016-shot1_2/img224.jpg', use_column_width=True)
6
 
7
- # from PIL import Image
8
- # import glob
9
 
 
 
10
 
11
- # images = glob.glob("/path/to/images/")
12
  # index= st.number_input('Index')
13
 
14
  # if st.button('Next'):
 
1
  import streamlit as st
2
+ from PIL import Image
3
+ import glob
4
+ import json
5
 
6
  prefix = 'https://raw.githubusercontent.com/BennoKrojer/imagecode-val-set/main/image-sets-val/'
7
+ set2ids = json.load(open('set2ids.json', 'r'))
8
 
9
+ # st.image(prefix + 'MSR-VTT-videoTestVideo_video7016-shot1_2/img224.jpg', use_column_width=True)
10
 
 
 
11
 
12
+ images = set2ids['MSR-VTT-videoTestVideo_video7016-shot1_2/']
13
+ st.text(images)
14
 
 
15
  # index= st.number_input('Index')
16
 
17
  # if st.button('Next'):
set2ids.json ADDED
The diff for this file is too large to render. See raw diff