I am having trouble deploying my model into streamlit cloud. It works just fine on my local machine when run through command prompt but I get errors that it can’t find my model when trying to deploy the new app

The file path is wrong.
In streamlit cloud file paths must be relative to the root folder of the github repo.
If the model resides in the root folder, just load_model("model.h5") should work.