Convert Uploaded file so it can be predicted by classifier

Hey all,
I’m a new user of streamlit. I’m trying to get a simple classifier up and running. All I want the user to be able to do is drag or upload their image and for my model to try to predict what it is. However, I’m having issues. I typically load the image from my directory but there isn’t a temporary directory for streamlit that I’m aware of or an easier way to convert the file?