@echo off :: Check if Conda is installed where conda >nul 2>&1 if %errorlevel% neq 0 ( echo Conda is not installed. Please install Conda before running this script. exit /b 1 ) :: Clone the repository git clone https://github.com/oobabooga/text-generation-webui.git cd text-generation-webui :: Create a Conda environment conda create -n textgen python=3.10.9 :: Activate the Conda environment conda activate textgen :: Install PyTorch (choose the appropriate command for your system) pip install torch torchvision torchaudio :: Install the required Python packages pip install -r requirements.txt