Hello streamlit community, am having some problem trying to use the st.image() to open an image saved on my local disk. below is the code
st.image(r"c:\U\d\Desktop\logo.png",use_column_width=True)
If this doesn’t work, try using Pillow to handle the image before passing it to st.image:
import streamlit as st
from PIL import Image
# Open the image from the specified path
image = Image.open('c:/U/d/Desktop/logo.png')
# Display the image with a caption in Streamlit
st.image(image, caption='My logo')