Turning images to bytes
Browse files
main.py
CHANGED
@@ -23,6 +23,7 @@ def main():
|
|
23 |
accept_multiple_files=True)
|
24 |
for in_img in img_input:
|
25 |
if in_img is not None:
|
|
|
26 |
img = load_image(in_img)
|
27 |
capt = img_caption.get_caption(img)
|
28 |
st.image(image=img, caption=capt, width=250, height=250)
|
|
|
23 |
accept_multiple_files=True)
|
24 |
for in_img in img_input:
|
25 |
if in_img is not None:
|
26 |
+
image = io.BytesIO(in_img.read())
|
27 |
img = load_image(in_img)
|
28 |
capt = img_caption.get_caption(img)
|
29 |
st.image(image=img, caption=capt, width=250, height=250)
|