File size: 687 Bytes
e15dae8
17bb1f6
 
 
e15dae8
62635cf
17bb1f6
62635cf
17bb1f6
62635cf
 
7c364f1
17bb1f6
62635cf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import streamlit as st
from PIL import Image
import glob
import json

prefix = 'https://raw.githubusercontent.com/BennoKrojer/imagecode-val-set/main/image-sets-val/'
set2ids = json.load(open('set2ids.json', 'r'))

# st.image(prefix + 'MSR-VTT-videoTestVideo_video7016-shot1_2/img224.jpg', use_column_width=True)


images = set2ids['MSR-VTT-videoTestVideo_video7016-shot1_2']
st.text(images)

# index= st.number_input('Index')

# if st.button('Next'):
#     index+=1


# if st.button('Prev'):
#     if index > 0:
#         index = index -1

# image = Image.open(images[index])
# st.image(image, use_column_width=True)


# x = st.slider('Select a value')
# st.write(x, 'squared is', x * x)