From e3a4e1e16ae49e22d077ec7bb4f87de517a7a3a8 Mon Sep 17 00:00:00 2001 From: AlexVeeBee Date: Thu, 7 Dec 2023 22:15:56 +0000 Subject: [PATCH] Fixed extras - Part 2 --- Launcher.bat | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Launcher.bat b/Launcher.bat index 2818604..f47ef07 100644 --- a/Launcher.bat +++ b/Launcher.bat @@ -221,24 +221,26 @@ call conda activate extras REM Start SillyTavern Extras with desired configurations echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Extras launched in a new window. -@REM read modules.txt and find the start_command line +@REM echo "Getting start command from modules.txt" + +@REM @REM read modules.txt and find the start_command line for /F "tokens=*" %%a in ('findstr /I "start_command=" %modules_path%') do ( - set "start_command=%%a" + set start_command=%%a ) -echo "starting with command = %start_command%" +set start_command=%start_command:start_command=% start cmd /k "title SillyTavern Extras && cd /d %~dp0SillyTavern-extras && %start_command%" -@REM start cmd /k "title SillyTavern Extras && cd /d %~dp0SillyTavern-extras && python server.py --rvc-save-file --cuda-device=0 --max-content-length=1000 --enable-modules=talkinghead,chromadb,caption,summarize,rvc" - - - REM Activate the xtts environment call conda activate xtts REM Start XTTS echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% XTTS launched in a new window. start cmd /k "title XTTSv2 API Server && cd /d %~dp0xtts && python -m xtts_api_server" + +echo Debug Pause +pause + goto :home @REM end of start_st_extras @@ -768,7 +770,7 @@ REM remove modules_enable set "modules_enable=" REM Compile the Python command -set "python_command=/k python server.py" +set "python_command=python server.py" if "%xtts_trigger%"=="true" ( set "python_command=%python_command% --gpu 0 --cuda-device=0 " )