I have array, need to download it in format .jpeg. In cloud.
i do -
img = tensorflow.keras.utils.array_to_img(array)
(Image.fromarray don`t work )
if i do -
st.image(img)
i can to see picture in browser .
But
st.download_button(label='download',data=img,file_name = 'O.jpg')
don`t work
On local computer work:
img = Image.fromarray(array)
img.save('image_file.jpg')
in Streamlit cloud it don`t work ((((