Spaces:
Runtime error
Runtime error
Commit ·
2ce2e3c
1
Parent(s): f4d85d5
50 unmodified lines5152535455565750 unmodified linesimg = Image.open(io.BytesIO(requests.get(img_urls[index], stream=True).content))img_width, img_height = img.sizesmaller = min(img_width, img_height)images[true_idx] = ImageOps.expand(img,border=smaller//12,fill='green')if true_idx == index:cap = f'{true_idx} (TARGET IMAGE)'else:50 unmodified lines5152535455565750 unmodified linesimg = Image.open(io.BytesIO(requests.get(img_urls[index], stream=True).content))img_width, img_height = img.sizesmaller = min(img_width, img_height)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