Having Issues with trying to deploy my Streamlit Python Program which uses 3 API Sets. ElevenLabs for Text-To-Speech, OpenAI from prompt to Story, HuggingFace Model from Image to Prompt.
Everything worked perfectly locally. However this is my first time trying to deploy via Heroku, and can't seem to find the answer anywhere.
GitHub Link to codebase: https://github.com/aTrapDeer/Comedian-TimDillon-img2Audio/tree/main
Config Vars were set with the appropriate API Keys
heroku logs --tail output: https://pastebin.com/WEU9yQYR
C:\Users\13146\Documents\Visual Studio Code\Python\TimDillon img2pod - Project - Deploy\Comedian-TimDillon-img2Audio>heroku logs --tail ... 2023-08-28T08:42:12.948778+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/_stcore/health" host=timdillon-img2pod-1ab72d62deeb.herokuapp.com request_id=1d7fe585-556f-4f1c-a557-51f2307f8ee7 fwd="104.XXX.XX.XXX" dyno= connect= service= status=503 bytes= protocol=https 2023-08-28T08:42:13.011679+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/_stcore/allowed-message-origins" host=timdillon-img2pod-1ab72d62deeb.herokuapp.com request_id=4a3160c4-55a7-4da8-8189-00ae59e57bde fwd="104.XXX.XX.XXX" dyno= connect= service= status=503 bytes= protocol=https 2023-08-28T08:43:13.699251+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/_stcore/health" host=timdillon-img2pod-1ab72d62deeb.herokuapp.com request_id=24536e17-0719-4384-8866-f6412515c257 fwd="104.XXX.XX.XXX" dyno= connect= service= status=503 bytes= protocol=https 2023-08-28T08:43:14.010447+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/_stcore/allowed-message-origins" host=timdillon-img2pod-1ab72d62deeb.herokuapp.com request_id=23110220-5b3b-4c12-a658-0cd682ba96f5 fwd="104.XXX.XX.XXX" dyno= connect= service= status=503 bytes= protocol=https 2023-08-28T08:44:14.790490+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/_stcore/health" host=timdillon-img2pod-1ab72d62deeb.herokuapp.com request_id=f7030aeb-1208-4bee-917c-162bc64401b3 fwd="104.XXX.XX.XXX" dyno= connect= service= status=503 bytes= protocol=https 2023-08-28T08:44:14.995942+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/_stcore/allowed-message-origins" host=timdillon-img2pod-1ab72d62deeb.herokuapp.com request_id=21a4f2d0-eb96-4c26-9409-493e80e435d5 fwd="104.XXX.XX.XXX" dyno= connect= service= status=503 bytes= protocol=https 2023-08-28T08:44:29.638198+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=timdillon-img2pod-1ab72d62deeb.herokuapp.com request_id=5ecb7330-539e-40c1-afff-09565e77414e fwd="104.XXX.XX.XXX" dyno= connect= service= status=503 bytes= protocol=https 2023-08-28T08:44:30.523898+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=timdillon-img2pod-1ab72d62deeb.herokuapp.com request_id=be7821b3-4706-4e51-ae6e-79dc254f8984 fwd="104.XXX.XX.XXX" dyno= connect= service= status=503 bytes= protocol=https 2023-08-28T08:46:33.046556+00:00 heroku[web.1]: State changed from crashed to starting 2023-08-28T08:46:44.217644+00:00 heroku[web.1]: Starting process with command
sh setup.sh && streamlit run main.py2023-08-28T08:46:46.887781+00:00 app[web.1]: 2023-08-28 08:46:46.887 2023-08-28T08:46:46.887805+00:00 app[web.1]: Warning: the config option 'server.enableCORS=false' is not compatible with 'server.enableXsrfProtection=true'. 2023-08-28T08:46:46.887806+00:00 app[web.1]: As a result, 'server.enableCORS' is being overridden to 'true'. 2023-08-28T08:46:46.887806+00:00 app[web.1]: 2023-08-28T08:46:46.887808+00:00 app[web.1]: More information: 2023-08-28T08:46:46.887810+00:00 app[web.1]: In order to protect against CSRF attacks, we send a cookie with each request. 2023-08-28T08:46:46.887811+00:00 app[web.1]: To do so, we must specify allowable origins, which places a restriction on 2023-08-28T08:46:46.887811+00:00 app[web.1]: cross-origin resource sharing. 2023-08-28T08:46:46.887811+00:00 app[web.1]: 2023-08-28T08:46:46.887813+00:00 app[web.1]: If cross origin resource sharing is required, please disable server.enableXsrfProtection. 2023-08-28T08:46:46.887814+00:00 app[web.1]: 2023-08-28T08:46:46.889320+00:00 app[web.1]: 2023-08-28T08:46:46.889322+00:00 app[web.1]: Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False. 2023-08-28T08:46:46.889322+00:00 app[web.1]: 2023-08-28T08:46:47.398293+00:00 app[web.1]: 2023-08-28T08:46:47.398308+00:00 app[web.1]: You can now view your Streamlit app in your browser. 2023-08-28T08:46:47.398322+00:00 app[web.1]: 2023-08-28T08:46:47.398385+00:00 app[web.1]: Network URL: http://172.XX.XXX.XX:59503 2023-08-28T08:46:47.398424+00:00 app[web.1]: External URL: http://3.83.104.189:59503 2023-08-28T08:46:47.398439+00:00 app[web.1]: 2023-08-28T08:46:47.421321+00:00 heroku[web.1]: State changed from starting to up 2023-08-28T08:46:47.527709+00:00 app[web.1]: 2023-08-28T08:46:47.527710+00:00 app[web.1]: A new version of Streamlit is available. 2023-08-28T08:46:47.527710+00:00 app[web.1]: 2023-08-28T08:46:47.527713+00:00 app[web.1]: See what's new at https://discuss.streamlit.io/c/announcements 2023-08-28T08:46:47.527729+00:00 app[web.1]: 2023-08-28T08:46:47.527730+00:00 app[web.1]: Enter the following command to upgrade: 2023-08-28T08:46:47.527730+00:00 app[web.1]: $ pip install streamlit --upgrade 2023-08-28T08:46:47.527730+00:00 app[web.1]: 2023-08-28T09:05:42.032567+00:00 heroku[router]: at=info method=GET path="/" host=timdillon-img2pod- ...
Would anyone happen to know how to resolve this or fix it?