Running an app built using gradio

praveenklHOBBY

a year ago

Hi, I have a simple app built using gradio. When I deploy it, I am unable to access it publicly using the domain created by Railway.
For example,
public domain = myapp-production.up.railway.app
I tried http://myapp-production.up.railway.app and http://myapp-production.up.railway.app:7860 but I am unable to connect.
I have an env variable named PORT with value 7860.
Am I missing a step?

Thanks.

2 Replies


praveenklHOBBY

a year ago

Thank you for the pointer to docs. Gradio by default starts the app on 127.0.0.1 and port 7860. I need to figure out how to make it use 0.0.0.0 for the host.