Python code app run well at locally but when I am deploying on heroku then I got an error like

at=error code=H10 desc=“App crased” method=GET path="/" host=“app_name” reqeuest_id=e1e3e08a-6d83-47ec-af82-1c10770f1158 fwd=“66.249.83.53” dyno=connect=service=status=503 bytes=protocols=https

try this article to help troubleshoot your issue