Toml decoder error (TomlDecodeError)

Hey I thought my error is also similar to this, so I am including the link of my error:

The contents of my setup.sh file are:

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

My app is running perfectly on local machine. But it is getting the error described in the above link when I try to deploy it on heroku.

If anybody could help me solving this.