ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None
backend is running and i checked with a script to print ans in terminal
It’s working but same in streamlit it’s not
i am using streamlit and python with the following versions:
python = Python 3.10.10
Streamlit, version 1.32.2
what i am working on is using hugging face app along with streamlit
any help would be appreciated
To address the ProtocolError in your app, you may want to check whether you’re not exceeding Hugging Face API limits and verify that your network allows connections to Hugging Face servers.
hey @Charly_Wargnier ,
Im also facing this error, where in Hugging face API without streamlit , i.e., on terminal gives output where as on streamlit, its throwing the error, any way to tackle this?
And also how to verify the network that allows connections to HuggingFace servers?
(PS : I have created a new API key that is not exceeding the API limits)
Regards,
Anish
To address your issue with connecting to Hugging Face servers from Streamlit, you can use the curl command to check if your network can reach Hugging Face servers:
curl https://api.huggingface.co
A response indicates your network can connect, while no response suggests a potential blockage.
You may also want to check your firewall and proxy settings.
If you’re in a managed network environment, such as an office or university, you may need to contact your network administrator for assistance. Otherwise, you can typically find how-to guides for your device (Windows, macOS, Linux, etc.) and your operating system online
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.