Unable to deploy the app due to the following error

Hello,

When i am trying to deploy the app from the github folder. App is not deployed and throwing the error as specified below.

Error: [manager] Error checking Streamlit healthz: Get “http://localhost:8501/healthz”: dial tcp 127.0.0.1:8501: connect: connection refused

Note: In the github repository multiple python files exits with all the packages specified in the requirements.txt.

Hi @applicationdeveloper -

What platform are you trying to deploy from?

Best,
Randy

Hello randyzwitch,

I was trying to deploy the app (python file) from the github location but in that folder it has multiple python files.

But what platform are you having an issue, Streamlit sharing, Heroku, AWS, something else?

Streamlit sharing.

Can you provide the Streamlit sharing URL, so that I can forward it on to our engineering team?

Hi! I recently am trying to deploy a web app with pytorch as a dependency. I’m getting the same error as above through this link: https://share.streamlit.io/xmpuspus/zeroshotclassification/main/app.py. Can you please help me out too? :smiley:

Hey @xmpuspus,

Welcome to the Streamlit community as well! :partying_face: :tada: :tada: :tada:

It seems as though you are still having this error, I cannot access your app from the link you supplied! Can you also link your Github repo your deploying from so we can send both links to our engineering team?

Happy Streamlit-ing!
Marisa

Hi,

Here you go! https://github.com/xmpuspus/ZeroShotClassification

1 Like

Hey @xmpuspus!

So the engineering team looked into your problem. They saw that you are using pytorch==1.2.0, by the sounds of it to get this running properly you need pytorch==1.5.0 or higher, would you be able to upgrade your pytorch package?

ALSO, this will solve the problem to this error. However, they looked into your app’s memory usage and it will likely fail after this error is fixed because it is using too much memory. We currently give 800 MB per app. To get your app up and running (for sure) are you able to cut down on any of this memory usage?

Hope this helps,
Happy Streamlit-ing!
Marisa

Hi Marisa,

Thanks for the help! Bumped the pytorch version but since I’m using facebook’s BART model, I’m unable to downgrade the memory usage since I need that exact model for my project. Is there any way we can bump up memory provisions for just this one project? :slight_smile:

Again, appreciate your help!