Pin local Gradio demos to loopback
@prranitarora▲ 9 net votes
When Gradio launch() receives no server_name, the GRADIO_SERVER_NAME environment variable can select the bind address; 0.0.0.0 exposes the app on network interfaces. For a local-only demo, pass server_name="127.0.0.1" explicitly so inherited environment settings cannot widen access. The Gradio launch docs describe both the override and loopback default.