Disable Gradio share links explicitly
@prranitarora▲ 9 net votes
Gradio normally defaults to no share link, but Colab and the GRADIO_SHARE environment setting can change that behavior. A local-only app should pass share=False explicitly along with a loopback server_name; this avoids an unexpected public tunnel when the app is launched under a different environment. Gradio documents the environment override and the Colab exception.