Open nanshaws opened 6 months ago
I think this is the same issue. https://github.com/oobabooga/text-generation-webui/issues/5975
If you use a proxy server in Windows, you may need to set HTTP_PROXY
, HTTPS_PROXY
and NO_PROXY
environment variables.
import os
from urllib.request import getproxies
proxies = getproxies()
os.environ["http_proxy"] = proxies["http"]
os.environ["https_proxy"] = proxies["https"]
os.environ["no_proxy"] = "localhost, 127.0.0.1/8, ::1"
If you use a proxy server in Windows, you may need to set
HTTP_PROXY
,HTTPS_PROXY
andNO_PROXY
environment variables.import os from urllib.request import getproxies proxies = getproxies() os.environ["http_proxy"] = proxies["http"] os.environ["https_proxy"] = proxies["https"] os.environ["no_proxy"] = "localhost, 127.0.0.1/8, ::1"
you are right
Describe the bug
ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True or check your proxy settings to allow access to localhost.
Is there an existing issue for this?
Reproduction
ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True or check your proxy settings to allow access to localhost.
Screenshot
Logs
System Info