2023-03-12 20:42:50 +01:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
@echo Starting the web UI...
|
|
|
|
|
2023-03-25 00:19:23 +01:00
|
|
|
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
|
2023-03-25 00:19:23 +01:00
|
|
|
|
2023-03-25 07:14:29 +01:00
|
|
|
if not exist "%MAMBA_ROOT_PREFIX%\condabin\micromamba.bat" (
|
2023-03-25 00:19:23 +01:00
|
|
|
call "%MAMBA_ROOT_PREFIX%\micromamba.exe" shell hook >nul 2>&1
|
|
|
|
)
|
2023-03-25 07:14:29 +01:00
|
|
|
call "%MAMBA_ROOT_PREFIX%\condabin\micromamba.bat" activate "%INSTALL_ENV_DIR%" || ( echo MicroMamba hook not found. && goto end )
|
2023-03-12 20:42:50 +01:00
|
|
|
cd text-generation-webui
|
2023-03-25 00:19:23 +01:00
|
|
|
|
2023-03-12 20:42:50 +01:00
|
|
|
call python server.py --auto-devices --cai-chat
|
|
|
|
|
2023-03-25 00:19:23 +01:00
|
|
|
:end
|
2023-03-12 20:42:50 +01:00
|
|
|
pause
|