text-generation-webui/start-webui.bat

21 lines
521 B
Batchfile
Raw Normal View History

2023-03-12 20:42:50 +01:00
@echo off
@echo Starting the web UI...
cd /D "%~dp0"
set MAMBA_ROOT_PREFIX=%cd%\installer_files\mamba
2023-03-12 20:42:50 +01:00
set INSTALL_ENV_DIR=%cd%\installer_files\env
if not exist "%MAMBA_ROOT_PREFIX%\Scripts\activate.bat" (
call "%MAMBA_ROOT_PREFIX%\micromamba.exe" shell hook >nul 2>&1
)
call "%MAMBA_ROOT_PREFIX%\condabin\mamba_hook.bat" || ( echo Micromamba hook not found. && goto end )
call micromamba activate "%INSTALL_ENV_DIR%" || goto end
2023-03-12 20:42:50 +01:00
cd text-generation-webui
2023-03-12 20:42:50 +01:00
call python server.py --auto-devices --cai-chat
:end
2023-03-12 20:42:50 +01:00
pause