mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-20 21:03:07 +00:00
upgraded
This commit is contained in:
parent
1c1121b4d4
commit
98bf95c2aa
17
c_webui.bat
17
c_webui.bat
@ -132,13 +132,10 @@ if %errorlevel% equ 0 (
|
|||||||
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...
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
@ -148,23 +145,13 @@ if %errorlevel% equ 0 (
|
|||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
|
|
||||||
|
echo "Cleanup"
|
||||||
REM Cleanup
|
REM Cleanup
|
||||||
if exist "./tmp" (
|
if exist "./tmp" (
|
||||||
rmdir /s /q "./tmp"
|
rmdir /s /q "./tmp"
|
||||||
echo Cleaning tmp folder
|
echo Cleaning tmp folder
|
||||||
)
|
)
|
||||||
|
|
||||||
conda list | findstr /i /c:"cudatoolkit-dev" >nul
|
|
||||||
if errorlevel 1 (
|
|
||||||
echo CUDA package not found. Installing...
|
|
||||||
set /p install_cuda=Do you want to install CUDA? (Y/N)
|
|
||||||
|
|
||||||
if /i "%install_cuda%"=="Y" (
|
|
||||||
conda install -c conda-forge cudatoolkit-dev
|
|
||||||
)
|
|
||||||
) else (
|
|
||||||
echo CUDA package is already installed.
|
|
||||||
)
|
|
||||||
echo Launching application
|
echo Launching application
|
||||||
REM Launch the Python application
|
REM Launch the Python application
|
||||||
python app.py
|
python app.py
|
||||||
|
Loading…
Reference in New Issue
Block a user