Spaces:
Runtime error
Runtime error
BennoKrojer
commited on
Commit
•
d585e36
1
Parent(s):
fae45ed
app.py
CHANGED
@@ -15,7 +15,7 @@ images = [prefix+'/MSR-VTT-videoTestVideo_video7016-shot1_2/'+i for i in set2ids
|
|
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 |
-
|
19 |
|
20 |
-
col1.image(
|
21 |
col2.image(images, width=175, caption=list(range(10)))
|
|
|
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(images[index], use_column_width=True)
|
21 |
col2.image(images, width=175, caption=list(range(10)))
|