Streamlit Deployment: tensorflow.python.framework.errors_impl.OpError

Thank you for suggestion. I implemented it (see github repo) but did not work. I got the following error:

OSError: No file or directory found at /saved_model

Please advise …

Update: I figured it out! I saved the model as a .h5 file directly instead of using SavedModel; this allowed the cloud deployment to work!

Link 1:https://www.tensorflow.org/guide/keras/save_and_serialize#:~:text=The%20recommended%20format%20is%20SavedModel,‘h5’%20to%20save()%20.

Link 2: https://discuss.streamlit.io/t/oserror-savedmodel-file-does-not-exist-at/12985

1 Like