R
RunPod10mo ago
todio

Running on local URL but can't access from outside

Hi guys, I have this service running in my pod but I can't seem to access it through the intended way. I have the service ready Running on local URL: http://127.0.0.1:7860 I checked using curl from the pod on localhost and I get the interface. However, the service is "not ready" from the UI And when I still try to connect I get the Bad gateway Error code 502 error
No description
Solution:
You don't need to edit the code.
export GRADIO_SERVER_NAME="0.0.0.0"
export GRADIO_SERVER_NAME="0.0.0.0"
...
Jump to solution
13 Replies
Madiator2011
Madiator201110mo ago
Is that gradio app if so you need to run in on 0.0.0.0
todio
todioOP10mo ago
Do you think it can come from the app settings? Actually this is the full message when I start the server :
Running on local URL: http://127.0.0.1:7860
To create a public link, set `share=True` in `launch()`.
Running on local URL: http://127.0.0.1:7860
To create a public link, set `share=True` in `launch()`.
the app is facefusion running on a pytorch pod
Madiator2011
Madiator201110mo ago
you will need edit your start python file do you have link to source code of app?
todio
todioOP10mo ago
GitHub
GitHub - facefusion/facefusion: Next generation face swapper and en...
Next generation face swapper and enhancer. Contribute to facefusion/facefusion development by creating an account on GitHub.
Madiator2011
Madiator201110mo ago
so you can try this open file facefusion/facefusion/core.py
Solution
ashleyk
ashleyk10mo ago
You don't need to edit the code.
export GRADIO_SERVER_NAME="0.0.0.0"
export GRADIO_SERVER_NAME="0.0.0.0"
Madiator2011
Madiator201110mo ago
oh so gradio supports env variables?
ashleyk
ashleyk10mo ago
That makes Gradio bind to all interfaces instead of 127.0.0.1 Yes There is GRADIO_SERVER_PORT as well.
Madiator2011
Madiator201110mo ago
I was always doing tabbed_interface.launch(server_name="0.0.0.0", server_port=7860)
ashleyk
ashleyk10mo ago
Yep but not all apps support that FaceFusion is one of them
ashleyk
ashleyk10mo ago
GitHub
facefusion-docker/scripts/pre_start.sh at main · ashleykleynhans/fa...
Docker image for FaceFusion: Next generation face swapper and enhancer - ashleykleynhans/facefusion-docker
ashleyk
ashleyk10mo ago
Thats how I start it.
todio
todioOP10mo ago
omg thank you
Want results from more Discord servers?
Add your server