jhj0517 commited on
Commit
5cbd5e7
1 Parent(s): ab7c9b0
Files changed (1) hide show
  1. user-start-webui.bat +5 -1
user-start-webui.bat CHANGED
@@ -13,6 +13,7 @@ set WHISPER_TYPE=
13
  set WHISPER_MODEL_DIR=
14
  set FASTER_WHISPER_MODEL_DIR=
15
  set INSANELY_FAST_WHISPER_MODEL_DIR=
 
16
 
17
 
18
  if not "%SERVER_NAME%"=="" (
@@ -51,7 +52,10 @@ if not "%FASTER_WHISPER_MODEL_DIR%"=="" (
51
  if not "%INSANELY_FAST_WHISPER_MODEL_DIR%"=="" (
52
  set INSANELY_FAST_WHISPER_MODEL_DIR_ARG=--insanely_fast_whisper_model_dir "%INSANELY_FAST_WHISPER_MODEL_DIR%"
53
  )
 
 
 
54
 
55
  :: Call the original .bat script with cli arguments
56
- start-webui.bat %SERVER_NAME_ARG% %SERVER_PORT_ARG% %USERNAME_ARG% %PASSWORD_ARG% %SHARE_ARG% %THEME_ARG% %API_OPEN% %WHISPER_TYPE_ARG% %WHISPER_MODEL_DIR_ARG% %FASTER_WHISPER_MODEL_DIR_ARG% %INSANELY_FAST_WHISPER_MODEL_DIR_ARG%
57
  pause
 
13
  set WHISPER_MODEL_DIR=
14
  set FASTER_WHISPER_MODEL_DIR=
15
  set INSANELY_FAST_WHISPER_MODEL_DIR=
16
+ set DIARIZATION_MODEL_DIR=
17
 
18
 
19
  if not "%SERVER_NAME%"=="" (
 
52
  if not "%INSANELY_FAST_WHISPER_MODEL_DIR%"=="" (
53
  set INSANELY_FAST_WHISPER_MODEL_DIR_ARG=--insanely_fast_whisper_model_dir "%INSANELY_FAST_WHISPER_MODEL_DIR%"
54
  )
55
+ if not "%DIARIZATION_MODEL_DIR%"=="" (
56
+ set DIARIZATION_MODEL_DIR_ARG=--diarization_model_dir "%DIARIZATION_MODEL_DIR%"
57
+ )
58
 
59
  :: Call the original .bat script with cli arguments
60
+ start-webui.bat %SERVER_NAME_ARG% %SERVER_PORT_ARG% %USERNAME_ARG% %PASSWORD_ARG% %SHARE_ARG% %THEME_ARG% %API_OPEN% %WHISPER_TYPE_ARG% %WHISPER_MODEL_DIR_ARG% %FASTER_WHISPER_MODEL_DIR_ARG% %INSANELY_FAST_WHISPER_MODEL_DIR_ARG% %DIARIZATION_MODEL_DIR_ARG%
61
  pause