Spaces:
Runtime error
Runtime error
Commit
·
d979b60
1
Parent(s):
eb4aee0
app.py
CHANGED
@@ -28,7 +28,7 @@ col1.subheader(descr)
|
|
28 |
sample_button = col1.button('Sample set of images with contextual description')
|
29 |
|
30 |
if sample_button:
|
31 |
-
|
32 |
img_set = random.sample(list(set2ids.keys()),1)[0]
|
33 |
img = images[index]
|
34 |
images[index] = ImageOps.expand(Image.open(io.BytesIO(requests.get(images[index], stream=True).content)),border=10,fill='blue')
|
|
|
28 |
sample_button = col1.button('Sample set of images with contextual description')
|
29 |
|
30 |
if sample_button:
|
31 |
+
index= 0
|
32 |
img_set = random.sample(list(set2ids.keys()),1)[0]
|
33 |
img = images[index]
|
34 |
images[index] = ImageOps.expand(Image.open(io.BytesIO(requests.get(images[index], stream=True).content)),border=10,fill='blue')
|