#Running on local URL but can't access from outside

19 messages · Page 1 of 1 (latest)

honest vigil
#

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

tardy thicketBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

sharp raven
#

Is that gradio app if so you need to run in on 0.0.0.0

honest vigil
#

Do you think it can come from the app settings?
Actually this is the full message when I start the server :

To create a public link, set `share=True` in `launch()`.```
the app is facefusion running on a pytorch pod
sharp raven
#

you will need edit your start python file

#

do you have link to source code of app?

honest vigil
sharp raven
#

so you can try this
open file facefusion/facefusion/core.py

zinc phoenix
#

You don't need to edit the code.

export GRADIO_SERVER_NAME="0.0.0.0"
sharp raven
#

oh so gradio supports env variables?

zinc phoenix
#

That makes Gradio bind to all interfaces instead of 127.0.0.1

zinc phoenix
#

There is GRADIO_SERVER_PORT as well.

sharp raven
#

I was always doing tabbed_interface.launch(server_name="0.0.0.0", server_port=7860)

zinc phoenix
#

FaceFusion is one of them

#

Thats how I start it.

honest vigil
#

omg thank you