I am trying to deploy me app but getting this error… please help
Hard to say without seeing more of the code but my top two guesses would be:
- The .h5 file isn’t actually saved in your repo, so the deployed app can’t access it. This is solved by actually committing the file to git and pushing it to the repo.
- You are using a different version of keras locally than the one that’s used in the deployed app. You can potentially fix this by putting a specific version in requirements.txt (e.g.
keras==3.7.0
) and then locally doingpip install -r requirements.txt
to make sure you are working with the same version locally as the one that will be used when you deploy the app.