From 18a17b6e856b364ee273572bb9615bff3f2019f7 Mon Sep 17 00:00:00 2001 From: candle Date: Wed, 16 Oct 2024 11:53:48 +0200 Subject: [PATCH] automatically open in browser when launching as a standalone script --- examples/basics/UI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/basics/UI.py b/examples/basics/UI.py index 3c17fc2b..ccd50ecb 100644 --- a/examples/basics/UI.py +++ b/examples/basics/UI.py @@ -242,4 +242,4 @@ def toggle_visibility(choice): # Launch the Gradio interface if __name__ == "__main__": ui = create_ui() - ui.launch() + ui.launch(inbrowser=True)