Traceback (most recent call last): File…
- User
Traceback (most recent call last): File "H:\Hot\Pookie\Poo\poo\api\yue.git\app\inference\gradio_server.py", line 631, in
demo.launch(server_name=server_name, server_port=server_port)File "H:\Hot\Pookie\Poo\poo\api\yue.git\app\env\Lib\site-packages\gradio\blocks.py", line 2627, 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.
- Assistant
The error you are encountering indicates an issue when trying to launch a Gradio app, specifically related to accessing localhost. Here are some strategies to resolve the issue based on the error message:
-
Set
share=True: If you want to create a shareable link for your Gradio app that can be accessed from the internet, you can addshare=Trueto thedemo.launch()function call. This will create a public link that you can use without needing direct access to localhost.demo.launch(share=True) -
Check Your Proxy Settings: The error message suggests checking proxy settings. If you're behind a proxy, it might be blocking access to localhost. Ensure that your proxy settings allow access to .
-