Keras module not found

Hi, dear community
I faced a problem while deploying my first app. In my requirements txt i have keras dependency, and localy im able to run streamlit app, but each time im trying to deploy it returns me an error keras module not found
https://share.streamlit.io/navymint/keras-streamlit/main
github app https://github.com/NavyMint/keras-streamlit
plz help me, what im doing wrong?

@NavyMint
Welcome to the community!
I was checking your app. I deployed it with a different version of requirements.txt and it worked.
So, you remove everything from your requirements.txt and add only these:

matplotlib==3.3.2
streamlit==0.70.0
numpy==1.18.5
Keras==2.4.3
tensorboard==2.3.0
tensorboard-plugin-wit==1.7.0
tensorflow==2.3.1
tensorflow-estimator==2.3.0
scipy==1.5.3

It should work.
This is your app that I deployed for testing only.
Link: https://share.streamlit.io/ai-14/testing
Github: https://github.com/AI-14/Testing

Once, you deploy it without any problems, lemme know. I’ll remove it from my repo and streamlit-share app list.

P.S. If you face the same problem, send the screenshot of your logs when you deploy.

Regards,
Amaan

@amaan_142 thank you so much, yeap it work now for me also :blush:
many thanks

@NavyMint
Kewl. You’re welcome.
I’ll remove it now.

1 Like