2023-03-12 20:42:50 +01:00
|
|
|
@echo off
|
|
|
|
|
2023-03-25 00:15:24 +01:00
|
|
|
SET TextOnly=False &REM True or False for Text only mode
|
|
|
|
|
|
|
|
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:15:24 +01:00
|
|
|
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 || goto end
|
|
|
|
goto %TextOnly%
|
|
|
|
|
|
|
|
:False
|
2023-03-25 00:25:49 +01:00
|
|
|
call python download-model.py
|
2023-03-25 00:15:24 +01:00
|
|
|
goto end
|
|
|
|
|
|
|
|
:True
|
2023-03-25 00:25:49 +01:00
|
|
|
call python download-model.py --text-only
|
2023-03-25 00:15:24 +01:00
|
|
|
|
|
|
|
:end
|
2023-03-12 20:42:50 +01:00
|
|
|
pause
|