OSError: SavedModel file does not exist at:

Hi,

I’m trying to deploy and share a CNN model , but I’m getting this error :

BTW , I can run the app totally fine in local server, this problem occurs when I use Streamlit share

Thank you :slight_smile:

Hi @ARTiSticov,

You’re getting the error because the path C:/Users/ARTiS/streamlit-CNN/ does not exist in the Streamlit sharing container. That path is specific to your local Windows machine.

To get your app working, modify line 5 of main.py to be:

model = tf.keras.models.load_model('CNN_model.hdf5')

Once you’ve made the change, your app should successfully deploy :tada: :partying_face:

Happy Streamlit-ing! :balloon:
Snehan

1 Like

Thank you so much Snehan !!

1 Like