App not starting in cloud

My app is working fine in localhost but when deployed on streamlit cloud it is always starting up. I see no error in logs so not sure what is going wrong.

App url: https://pdfsgpt.streamlit.app/
GitHub repo: GitHub - nav727/PDFGPT: Chat with any PDF. Easily upload the PDF documents you'd like to chat with. Ask questions, extract information, and summarize documents with AI.

Any kind of direction will be helpful. Thanks

Weird problem, try redeploying your app from streamlit cloud dashboard.
Also, I see that you are using dotenv instead of st.secrets. Make sure that you enter your API key as variables while deploying your app. See - Secrets management - Streamlit Docs

Hi Navin,
Thanks for the reply.

I didn’t understand what do you mean by streamlit cloud dashboard? Do you have any documentation link for the process.

Also this app was working before(have passed the env variable already) but after pushing the new code in main branch it is not starting up.

Secrets doc - Secrets management - Streamlit Docs

Hey @Samir ,

I didn’t see any response from you so I’d be happy to give you some clarification.

Your app isn’t deploying because you haven’t managed your secrets properly.

Streamlit has tools to help you manage your secrets (e.g. api endpoints, bearer tokens, etc)

Feel free to check out the documentation here to see how you can use this tool: Secrets management - Streamlit Docs

Thanks, Jyo

Hi @Navin_Chandra, @DevTechJr,
Sorry for the late reply.

I think secrets will not have any effect on app not starting AT ALL. If secret was the issue then app would atleast start and given an error when hugging face token would actually be required.

Having said that token is loaded to env as I am passing it through my toml as shown here → Secrets management - Streamlit Docs. This has worked in my previous version of the same app (which is deployed from repo:GitHub - nav727/PDFGPT: Chat with any PDF. Easily upload the PDF documents you'd like to chat with. Ask questions, extract information, and summarize documents with AI. and branch name: worksOnStreamlit. Currently the older version of app is running fine on https://pdfsgpt.streamlit.app/)

I gave up on why the newer version(found in main branch ) does not start and replaced with the older version. Maybe the size of LLM in newer version is too high (even though I didn’t get any errors for it)