Launch gradio UI with inbrowser=True when using cli

This commit is contained in:
Dillon DuPont
2025-05-28 15:30:26 -04:00
parent 677c6e8cd0
commit 7a55fb2600

View File

@@ -1450,7 +1450,7 @@ if __name__ == "__main__":
def test_cua():
"""Standalone function to launch the Gradio app."""
demo = create_gradio_ui()
demo.launch(share=False) # Don't create a public link
demo.launch(share=False, inbrowser=True) # Don't create a public link
if __name__ == "__main__":