File size: 1,224 Bytes
8a4f9be
4d6e651
db2039e
8a4f9be
94f2c1b
 
 
 
4d6e651
f88b351
83db7ce
135355d
8a4f9be
94f2c1b
4d6e651
94f2c1b
 
 
 
 
 
 
 
 
 
 
 
4d6e651
 
 
f88b351
 
 
db2039e
 
 
135355d
 
 
94f2c1b
 
135355d
4d6e651
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
@echo off
:: This batch file is for launching with command line args
:: See the wiki for a guide to command line arguments: https://github.com/jhj0517/Whisper-WebUI/wiki/Command-Line-Arguments
:: Set the values here to whatever you want. See the wiki above for how to set this.
set SERVER_NAME=
set SERVER_PORT=
set USERNAME=
set PASSWORD=
set SHARE=
set THEME=
set DISABLE_FASTER_WHISPER=
set API_OPEN=


:: Set args accordingly
if not "%SERVER_NAME%"=="" (
    set SERVER_NAME_ARG=--server_name %SERVER_NAME%
)
if not "%SERVER_PORT%"=="" (
    set SERVER_PORT_ARG=--server_port %SERVER_PORT%
)
if not "%USERNAME%"=="" (
    set USERNAME_ARG=--username %USERNAME%
)
if not "%PASSWORD%"=="" (
    set PASSWORD_ARG=--password %PASSWORD%
)
if /I "%SHARE%"=="true" (
    set SHARE_ARG=--share
)
if not "%THEME%"=="" (
    set THEME_ARG=--theme %THEME%
)
if /I "%DISABLE_FASTER_WHISPER%"=="true" (
    set DISABLE_FASTER_WHISPER_ARG=--disable_faster_whisper
)
if /I "%API_OPEN%"=="true" (
    set API_OPEN=--api_open
)

:: Call the original .bat script with optional arguments
start-webui.bat %SERVER_NAME_ARG% %SERVER_PORT_ARG% %USERNAME_ARG% %PASSWORD_ARG% %SHARE_ARG% %THEME_ARG% %DISABLE_FASTER_WHISPER_ARG% %API_OPEN%
pause