Spaces:
Runtime error
Runtime error
BennoKrojer
commited on
Commit
•
c9911aa
1
Parent(s):
5b4ba99
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import streamlit as st
|
2 |
-
from PIL import Image
|
3 |
import glob
|
4 |
import json
|
5 |
|
@@ -13,5 +13,7 @@ images = [prefix+'/MSR-VTT-videoTestVideo_video7016-shot1_2/'+i for i in set2ids
|
|
13 |
|
14 |
index= int(col1.number_input('Image Index from 0 to 9', value=0, min_value=0, max_value=len(images)-1))
|
15 |
|
16 |
-
|
17 |
-
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
+
from PIL import Image, ImageOps
|
3 |
import glob
|
4 |
import json
|
5 |
|
|
|
13 |
|
14 |
index= int(col1.number_input('Image Index from 0 to 9', value=0, min_value=0, max_value=len(images)-1))
|
15 |
|
16 |
+
img = ImageOps.expand(Image.open(images[index]),border=50,fill='blue')
|
17 |
+
|
18 |
+
col1.image(img, use_column_width=True)
|
19 |
+
col2.image(images, width=175, caption=list(range(10)))
|