My app (https://share.streamlit.io/Alex-Robson/PlantPal/master/streamlit_app.py/+/) used to take file uploads fine but now appears to throw an error no matter the file I choose.
Do you have any suggestions?
My app (https://share.streamlit.io/Alex-Robson/PlantPal/master/streamlit_app.py/+/) used to take file uploads fine but now appears to throw an error no matter the file I choose.
Do you have any suggestions?
Not sure if this is the exact issue, but recently we released an update to File Uploader so that results in backwards-breaking changes; perhaps thatโs the cause of your issue?
(One way to check might be to see which version your app was working on; if it worked on 0.67.2 but not 0.68 then thatโs probably the culprit)
The behavior of st.file_uploader
no longer autodetects the fileโs encoding.
This means that all files will be returned as binary buffers. If you need to
work with a string buffer, you can convert to a StringIO by decoding the binary
buffer as shown below:
file_buffer = st.file_uploader(...)
string_io = file_buffer.decode()
Since Today I started getting this error. Earlier I wasnโt getting this error. There were no changes made to the repo.
Link to the repo: Xray-classifier/webapp.py at main ยท smarthardik10/Xray-classifier (github.com)
Over here I am trying to Upload a .jpg image and after uploading this error shows up - Error: Request failed with status code 500
I also tried this method mentioned Error: Request failed with status code 500 but it gave me some other error
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.