https://www.notion.so/qim-dtu/Make-CLI-for-GUIs-open-the-browser-bddf54bfd43c499badff1f2516c1f6de?pvs=4
Gradio has a argument for launch called inbrowser: whether to automatically launch the interface in a new tab on the default browser. .
launch
inbrowser: whether to automatically launch the interface in a new tab on the default browser.
I added an argpass --no-browser to set this.
--no-browser