I am on a Windows 10 machine, using
streamlit==0.73.1. I am facing the error while selecting and upload an image using streamlit file_uploader, but it is showing the above error.
image_file = st.file_uploader(“Choose a X-Ray scan image…”, type=“jpg”)
if(image_file is not None):
img = image.load_img(image_file,target_size=(224,224))
img = image.img_to_array(img)
Img = Image.open(image_file)
st.image(Img, width=40, caption=‘Uploaded X-Ray’, use_column_width=True)
It used to work fine before upgrading streamlit.
Can anyone help me figure this out??