Deployed streamlit app on heroku but got connection error

Log file as follow
Before i run the app:

2020-12-02T01:13:17.559280+00:00 heroku[web.1]: Process running mem=975M(189.4%)

2020-12-02T01:13:17.562257+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)

2020-12-02T01:13:38.545581+00:00 heroku[web.1]: Process running mem=975M(189.4%)

2020-12-02T01:13:38.547794+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)

2020-12-02T01:14:01.713134+00:00 heroku[web.1]: Process running mem=975M(189.4%)

2020-12-02T01:14:01.715609+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)

2020-12-02T01:14:23.355878+00:00 heroku[web.1]: Process running mem=975M(189.4%)

2020-12-02T01:14:23.358063+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)

2020-12-02T01:14:45.092928+00:00 heroku[web.1]: Process running mem=975M(189.4%)

2020-12-02T01:14:45.095178+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)



After I run the app and interact with it for a few minutes:
2020-12-02T01:24:35.646677+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/healthz" host=tnbdemo.herokuapp.com request_id=deb31495-4074-426c-91fc-fc51f76b9b51 fwd="14.192.209.83" dyno= connect= service= status=503 bytes= protocol=https

2020-12-02T01:24:37.480394+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/healthz" host=tnbdemo.herokuapp.com request_id=a56a69e2-97eb-44c2-bcba-f4f27eac9887 fwd="14.192.209.83" dyno= connect= service= status=503 bytes= protocol=https

2020-12-02T01:24:38.242835+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=tnbdemo.herokuapp.com request_id=a176c035-e516-490e-9b8c-84d67578e7b0 fwd="14.192.209.83" dyno= connect= service= status=503 bytes= protocol=https

2020-12-02T01:24:39.109913+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=tnbdemo.herokuapp.com request_id=1ac673cb-88dd-463d-9706-d6c2f6b36267 fwd="14.192.209.83" dyno= connect= service= status=503 bytes= protocol=https

2020-12-02T01:24:42.680063+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=tnbdemo.herokuapp.com request_id=e0446a6a-5545-41ba-8362-c7a25ff0afa6 fwd="14.192.209.83" dyno= connect= service= status=503 bytes= protocol=https

2020-12-02T01:24:43.622491+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=tnbdemo.herokuapp.com request_id=be96bf32-670a-42c4-9bda-811c846b5c8b fwd="14.192.209.83" dyno= connect= service= status=503 bytes= protocol=https

2020-12-02T01:25:05.294588+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=tnbdemo.herokuapp.com request_id=03e093b7-3ea4-470b-a2bb-1702ed37f243 fwd="14.192.209.83" dyno= connect= service= status=503 bytes= protocol=https

2020-12-02T01:25:05.893822+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=tnbdemo.herokuapp.com request_id=ea5e9cfa-29e4-4e52-82a6-3b7144480444 fwd="14.192.209.83" dyno= connect= service= status=503 bytes= protocol=https

2020-12-02T01:27:06.903327+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=tnbdemo.herokuapp.com request_id=819c7bc9-57e1-4e67-84ef-bb2f7aa79cca fwd="14.192.209.83" dyno= connect= service= status=503 bytes= protocol=https

2020-12-02T01:27:07.294939+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=tnbdemo.herokuapp.com request_id=a30d6a6a-a462-41fc-871a-f19266753f72 fwd="14.192.209.83" dyno= connect= service= status=503 bytes= protocol=https 

it crashed

Anyone can help on this?

The above part says Memory quota exceeded - as far as I know Heroku allows only 500 mb free after that you have to pay.

It would be helpful if you show the code part where get method is executing.
Also if would show the procfile and the setup.sh file as well