mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-02-22 17:52:35 +00:00
updated
This commit is contained in:
parent
b876b90109
commit
1c1121b4d4
20
c_webui.bat
20
c_webui.bat
@ -39,7 +39,6 @@ echo \u001b[0m
|
|||||||
|
|
||||||
echo Testing internet connection
|
echo Testing internet connection
|
||||||
ping -n 1 google.com >nul
|
ping -n 1 google.com >nul
|
||||||
echo here
|
|
||||||
if %errorlevel% equ 0 (
|
if %errorlevel% equ 0 (
|
||||||
echo Internet Connection working fine
|
echo Internet Connection working fine
|
||||||
|
|
||||||
@ -64,13 +63,16 @@ if %errorlevel% equ 0 (
|
|||||||
git pull origin main
|
git pull origin main
|
||||||
) else (
|
) else (
|
||||||
if exist lollms-webui (
|
if exist lollms-webui (
|
||||||
cd lollms-webui
|
cd ./lollms-webui
|
||||||
) else (
|
) else (
|
||||||
echo Cloning repository...
|
echo Cloning repository...
|
||||||
git clone https://github.com/ParisNeo/lollms-webui.git ./lollms-webui
|
git clone https://github.com/ParisNeo/lollms-webui.git ./lollms-webui
|
||||||
cd lollms-webui
|
cd ./lollms-webui
|
||||||
|
echo Cloned successfully
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
echo Pulling latest version...
|
echo Pulling latest version...
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
@ -113,14 +115,13 @@ if %errorlevel% equ 0 (
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
set filename=./env
|
||||||
set "filename=./env"
|
|
||||||
echo Deactivating any activated environment
|
echo Deactivating any activated environment
|
||||||
conda deactivate
|
conda deactivate
|
||||||
|
echo checking %filename% existance
|
||||||
|
|
||||||
rem Check the error level to determine if the file exists
|
rem Check the error level to determine if the file exists
|
||||||
cd %filename%
|
if not exist "%filename%" (
|
||||||
IF !ERRORLEVEL! GTR 0 (
|
|
||||||
REM Create a new Conda environment
|
REM Create a new Conda environment
|
||||||
echo Creating Conda environment...
|
echo Creating Conda environment...
|
||||||
conda create --prefix ./env python=3.10
|
conda create --prefix ./env python=3.10
|
||||||
@ -128,14 +129,15 @@ if %errorlevel% equ 0 (
|
|||||||
pip install --upgrade pip setuptools wheel
|
pip install --upgrade pip setuptools wheel
|
||||||
conda install -c conda-forge cudatoolkit-dev
|
conda install -c conda-forge cudatoolkit-dev
|
||||||
) else (
|
) else (
|
||||||
echo %CD%
|
|
||||||
cd ..
|
|
||||||
echo Environment already exists. Skipping environment creation.
|
echo Environment already exists. Skipping environment creation.
|
||||||
conda activate ./env
|
conda activate ./env
|
||||||
)
|
)
|
||||||
|
cd
|
||||||
|
pause
|
||||||
echo Activating environment
|
echo Activating environment
|
||||||
conda activate ./env
|
conda activate ./env
|
||||||
echo Conda environment is created
|
echo Conda environment is created
|
||||||
|
pause
|
||||||
|
|
||||||
REM Install the required packages
|
REM Install the required packages
|
||||||
echo Installing requirements using pip...
|
echo Installing requirements using pip...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user