BennoKrojer commited on
Commit
c9911aa
1 Parent(s): 5b4ba99
Files changed (1) hide show
  1. app.py +5 -3
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
- col1.image(images[index], use_column_width=True)
17
- col2.image(images, width=200, caption=list(range(10)))
 
 
 
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)))