Spaces:
Runtime error
Runtime error
Commit
·
08682b3
1
Parent(s):
869dab3
load image list
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ set2ids = json.load(open('set2ids.json', 'r'))
|
|
| 8 |
|
| 9 |
images = set2ids['MSR-VTT-videoTestVideo_video7016-shot1_2']
|
| 10 |
|
| 11 |
-
index= st.number_input('Index')
|
| 12 |
|
| 13 |
if st.button('Next'):
|
| 14 |
index+=1
|
|
@@ -18,5 +18,4 @@ if st.button('Prev'):
|
|
| 18 |
if index > 0:
|
| 19 |
index = index -1
|
| 20 |
|
| 21 |
-
image
|
| 22 |
-
st.image(image, use_column_width=True)
|
|
|
|
| 8 |
|
| 9 |
images = set2ids['MSR-VTT-videoTestVideo_video7016-shot1_2']
|
| 10 |
|
| 11 |
+
index= int(st.number_input('Index'))
|
| 12 |
|
| 13 |
if st.button('Next'):
|
| 14 |
index+=1
|
|
|
|
| 18 |
if index > 0:
|
| 19 |
index = index -1
|
| 20 |
|
| 21 |
+
st.image(image[index], use_column_width=True)
|
|
|