Skip to content

Command Line Arguments

jhj0517 edited this page Sep 9, 2023 · 19 revisions

batch file

You can run project with some command line arguments by running user-start-webui.bat file.

You can set the values in there and run it.

Arguments

Variable Description Example Value
SERVER_NAME Server name to set in Gradio. For more info, see: Gradio documentation 0.0.0.0
SERVER_PORT Server port number to use when launching Gradio. For more info, see: Gradio documentation 7861
USERNAME Server username for Gradio. Both USERNAME and PASSWORD must be set simultaneously to enable authentication. More info: Gradio documentation myusername
PASSWORD Server password for Gradio. Both USERNAME and PASSWORD must be set simultaneously to enable authentication. More info: Gradio documentation mypassword
SHARE Enables the creation of a public link for the project. True
THEME UI theme to apply in the browser. View available themes here: Theme Gallery author/example_theme
Clone this wiki locally