Errors with deploying app

Hi everyone,

I’m having trouble deploying my Streamlit app to Streamlit Community Cloud. It works perfectly on my local machine, but fails during deployment with these main issues:

  1. ModuleNotFoundError: No module named 'yaml'
    Even though I have import yaml in my code, it seems like PyYAML isn’t being installed automatically.
  2. ERROR: Could not find a version that satisfies the requirement tensorflow
    The log shows the environment is using Python 3.13, and it looks like TensorFlow doesn’t support that version yet.

Here’s what I’ve tried so far:

  • I added all dependencies to requirements.txt, including tensorflow and others like streamlit, pandas, matplotlib, etc.
  • The app runs fine locally in a virtual environment.

Here is the URL to the app here
https://prediction-app-username.streamlit.app
and the github