Unable to upload image logo

Hi i got an error message as Iā€™m trying to attach image logo as a header using this format(from PIL import Image

st.title(ā€˜Total Data Scienceā€™)

image=Image.open( ā€˜tdslogo.pngā€™)
st.image(image,use_column_wdth=True)

Then i got this error
FileNotFoundError: [Errno 2] No such file or directory: ā€˜tdslogo.pngā€™

Please i need help.
Thank you.

You could pass the path to the file directly to st.image:

image_path = 'tdslogo.png'
st.image(image_path, use_column_width=True)

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.