Application Error when trying to deploy streamlit to heroku

I am trying to deploy a streamlit application to Heroku, however I keep getting an error that says:

Application error

An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail

However when I check the logs there isn’t anything wrong.
Below is the log
-----> Python app detected
-----> No change in requirements detected, installing from cache
-----> Installing pip 20.1.1, setuptools 47.1.1 and wheel 0.34.2
-----> Installing SQLite3
-----> Installing requirements with pip
-----> Discovering process types Procfile declares types -> web
-----> Compressing...
Done: 186.4M
-----> Launching... Released v11 deployed to Heroku
And here are requirements.txt

mkdir -p ~/.streamlit/

echo "[server]
headless = true
port = $PORT
enableCORS = false
" > ~/.streamlit/config.toml

and the Procfile
web: sh && streamlit run