Skip to content

Command Line Arguments

jhj0517 edited this page May 21, 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

Most arguments are related to Gradio's launch options. See the Gradio documentation for a detailed explanation.

Variable Description Example Value
--server_name Server name to set in Gradio. 0.0.0.0
--server_port Server port number to use when launching Gradio. 7861
--username Server username for Gradio. Both USERNAME and PASSWORD must be set simultaneously to enable authentication. myusername
--password Server password for Gradio. Both USERNAME and PASSWORD must be set simultaneously to enable authentication. 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
--faster_whisper_model_dir Use this if you want to use custom model directory path for faster-whisper. Make sure you enter the path "inside quotes". "C:\Whisper-WebUI\my_faster_whisper_model_path"
--whisper_model_dir Use this if you want to use custom model directory path for whisper. Make sure you enter the path "inside quotes". "C:\Whisper-WebUI\my_whisper_model_path"
Clone this wiki locally