Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When localhost is not accessible #26

Open
prayforsomeone opened this issue Aug 24, 2023 · 3 comments
Open

When localhost is not accessible #26

prayforsomeone opened this issue Aug 24, 2023 · 3 comments
Labels
good first issue Good for newcomers

Comments

@prayforsomeone
Copy link

Running on local URL: http://127.0.0.1:7860
Traceback (most recent call last):
File "C:\VALL-E-X-master\launch-ui.py", line 571, in
main()
File "C:\VALL-E-X-master\launch-ui.py", line 564, in main
app.launch()
File "C:\Users***\AppData\Local\Programs\Python\Python311\Lib\site-packages\gradio\blocks.py", line 1974, in launch
raise ValueError(
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.

请问这个要怎么改?

@JoonSumisu
Copy link

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.

希望能描述下你的环境是怎么样的,提示为 请使用share=True 或者检查代理让你能连接到localhost.

@ZYFDroid
Copy link

Try turn off your proxy software (e.g. v2ray, clash)

@Accurio
Copy link

Accurio commented Jun 28, 2024

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

5 participants