However, neither image nor binary formats seems to be valid.
I would try it with input_format=None if the path argument has .png as suffix and see what happens…
Edit: After looking at the implementation i don’t think that any image or binary formats will work…
import streamlit as st
import s3fs
# AWS S3 bucket credentials are stored in secret file
fs = s3fs.S3FileSystem(anon=False)
# one can also directly give credentials
# fs = s3fs.S3FileSystem(anon=False, key="My-AWS-Key", secret="adsfgasdgag")
st.image(fs.open('my-bucket/assets/blah.png', mode='rb').read())