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](https://cdn.answeroverflow.com/1204359671746658334/image.png)
13 Replies
Is that gradio app if so you need to run in on 0.0.0.0
Do you think it can come from the app settings?
Actually this is the full message when I start the server :
the app is facefusion running on a pytorch pod
you will need edit your start python file
do you have link to source code of app?
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.
so you can try this
open file facefusion/facefusion/core.py
Solution
You don't need to edit the code.
oh so gradio supports env variables?
That makes Gradio bind to all interfaces instead of 127.0.0.1
Yes
There is
GRADIO_SERVER_PORT
as well.I was always doing tabbed_interface.launch(server_name="0.0.0.0", server_port=7860)
Yep but not all apps support that
FaceFusion is one of them
GitHub
facefusion-docker/scripts/pre_start.sh at main · ashleykleynhans/fa...
Docker image for FaceFusion: Next generation face swapper and enhancer - ashleykleynhans/facefusion-docker
Thats how I start it.
omg thank you