Skip to content

Command Line Arguments

jhj0517 edited this page Jan 27, 2024 · 19 revisions

How to use

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.

Or you can just run the project directly on command line with lower case arguments, for example:

python app.py --share --server_name 0.0.0.0 --theme author/example_theme

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
DISABLE_FASTER_WHISPER This project uses an optimized whisper called faster-whisper by default for better VRAM usage and transcription speed. If you want to use the original OpenAI whisper implementation, you can set this value to True. True
Clone this wiki locally