imagecode-demo / app.py
BennoKrojer's picture
load image list
806e1e1
raw
history blame
464 Bytes
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'))
images = set2ids['MSR-VTT-videoTestVideo_video7016-shot1_2']
index= int(st.number_input('Index'))
if st.button('Next'):
index+=1
if st.button('Prev'):
if index > 0:
index = index -1
st.image(images[index], use_column_width=True)