Spaces:
Runtime error
Runtime error
Commit
·
eb4aee0
1
Parent(s):
74d753d
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 |
-
index= int(col1.number_input('Image Index from 0 to 9', value=0, min_value=0, max_value=len(images)-1))
|
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= int(col1.number_input('Image Index from 0 to 9', value=0, min_value=0, max_value=len(images)-1))
|
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')
|