mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-30 03:18:57 +01:00
Update start-webui.bat
Updated virtual environment handling to use Micromamba.
This commit is contained in:
parent
2604e3f7ac
commit
bddbc2f898
@ -2,10 +2,19 @@
|
||||
|
||||
@echo Starting the web UI...
|
||||
|
||||
cd /D "%~dp0"
|
||||
|
||||
set MAMBA_ROOT_PREFIX=%cd%\installer_files\mamba
|
||||
set INSTALL_ENV_DIR=%cd%\installer_files\env
|
||||
set PATH=%INSTALL_ENV_DIR%;%INSTALL_ENV_DIR%\Library\bin;%INSTALL_ENV_DIR%\Scripts;%INSTALL_ENV_DIR%\Library\usr\bin;%PATH%
|
||||
call conda activate
|
||||
|
||||
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
|
||||
cd text-generation-webui
|
||||
|
||||
call python server.py --auto-devices --cai-chat
|
||||
|
||||
:end
|
||||
pause
|
||||
|
Loading…
Reference in New Issue
Block a user