Merge pull request #2 from AlexVeeBee/main

Fixed extras part 2
This commit is contained in:
deffcolony
2023-12-07 23:21:54 +01:00
committed by GitHub

View File

@@ -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 "
)