Displays error when deploying the app on Streamlit but works fine on localhost

Can you provide a minimal sample code where we can try. Something that can replicate the error.

See also the posting guide.