Spaces:
Runtime error
Runtime error
BennoKrojer
commited on
Commit
•
c3ace54
1
Parent(s):
d585e36
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import streamlit as st
|
2 |
from PIL import Image, ImageOps
|
3 |
import glob
|
@@ -13,9 +14,10 @@ col1, col2 = st.columns(2)
|
|
13 |
|
14 |
images = [prefix+'/MSR-VTT-videoTestVideo_video7016-shot1_2/'+i for i in set2ids['MSR-VTT-videoTestVideo_video7016-shot1_2']]
|
15 |
|
16 |
-
index= int(col1.number_input('Image Index from 0 to 9', value=0, min_value=0, max_value=len(images)-1))
|
17 |
|
|
|
18 |
images[index] = ImageOps.expand(Image.open(requests.get(images[index], stream=True).raw),border=10,fill='blue')
|
19 |
|
20 |
-
col1.image(
|
21 |
-
col2.image(images, width=
|
|
|
1 |
+
from turtle import color
|
2 |
import streamlit as st
|
3 |
from PIL import Image, ImageOps
|
4 |
import glob
|
|
|
14 |
|
15 |
images = [prefix+'/MSR-VTT-videoTestVideo_video7016-shot1_2/'+i for i in set2ids['MSR-VTT-videoTestVideo_video7016-shot1_2']]
|
16 |
|
17 |
+
index= int(col1.number_input('Image Index from 0 to 9', value=0, min_value=0, max_value=len(images)-1), color='red')
|
18 |
|
19 |
+
img = images[index]
|
20 |
images[index] = ImageOps.expand(Image.open(requests.get(images[index], stream=True).raw),border=10,fill='blue')
|
21 |
|
22 |
+
col1.image(img, use_column_width=True)
|
23 |
+
col2.image(images, width=150, caption=list(range(10)))
|