This issue has cropped up multiple times on the forum. I would suggest reading up on the following thread: Unable to host streamlit app using heroku due to error: cannot create /app/.streamlit/config.toml
In particular, try implementing the solution from these two steps and feel free get back to us if you’re still facing the issue 
Happy Streamlit’ing! 
Snehan
