Spaces:
Runtime error
Runtime error
Commit
·
62635cf
1
Parent(s):
e15dae8
image display
Browse files
app.py
CHANGED
|
@@ -1,4 +1,27 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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'):
|
| 15 |
+
# index+=1
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
# if st.button('Prev'):
|
| 19 |
+
# if index > 0:
|
| 20 |
+
# index = index -1
|
| 21 |
+
|
| 22 |
+
# image = Image.open(images[index])
|
| 23 |
+
# st.image(image, use_column_width=True)
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
# x = st.slider('Select a value')
|
| 27 |
+
# st.write(x, 'squared is', x * x)
|