I have built a mask detector, that is working fine locally, but after hoisting, the image uploader giving an error Error: Request failed with status code 500
code:
uploaded_file = st.file_uploader("Choose an image...", type="jpg")
if uploaded_file is not None:
image = Image.open(uploaded_file)
st.image(image, caption='Uploaded Image.')