Spaces:
Runtime error
Runtime error
Commit
·
331078a
1
Parent(s):
a9ee5f5
load image list
Browse files
app.py
CHANGED
|
@@ -8,14 +8,6 @@ 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', value=0, min_value=0, max_value=len(images)-1))
|
| 12 |
-
|
| 13 |
-
if st.button('Next'):
|
| 14 |
-
index+=1
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
if st.button('Prev'):
|
| 18 |
-
if index > 0:
|
| 19 |
-
index = index -1
|
| 20 |
|
| 21 |
st.image(prefix+'/MSR-VTT-videoTestVideo_video7016-shot1_2/'+images[index], use_column_width=True)
|
|
|
|
| 8 |
|
| 9 |
images = 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(prefix+'/MSR-VTT-videoTestVideo_video7016-shot1_2/'+images[index], use_column_width=True)
|