Spaces:
Runtime error
Runtime error
Commit ·
2ce2e3c
1
Parent(s): f4d85d5
50 unmodified lines515253545455565750 unmodified lines img = Image.open(io.BytesIO(requests.get(img_urls[index], stream=True).content)) img_width, img_height = img.size smaller = min(img_width, img_height) images[true_idx] = ImageOps.expand(img,border=smaller//12,fill='green') images[true_idx] = ImageOps.expand(img,border=smaller//8,fill='green') if true_idx == index: cap = f'{true_idx} (TARGET IMAGE)'else:app.py+1-1