Streamlit UploadFile

Hello. i need help with streamlit upload files. I’ve been building a project and while deploying it didn’t work as it did locally. here’s the problem.

I’m building an app to explain ml models. I need users to upload files as well as their models so my system can explain. but the problem is how this ML model can be uploaded and used directly without saving it first to a directory.

Summary: after uploading with file_uploader. how i can open this model file and use directly without saving it first to a directory.

been working on this for a few months now. so sad I got stuck here. it’s an abandoned project till I get help here. thanks