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.
|
||||
conda activate ./env
|
||||
)
|
||||
cd
|
||||
pause
|
||||
|
||||
echo Activating environment
|
||||
conda activate ./env
|
||||
echo Conda environment is created
|
||||
pause
|
||||
|
||||
REM Install the required packages
|
||||
echo Installing requirements using pip...
|
||||
pip install -r requirements.txt
|
||||
@ -148,23 +145,13 @@ if %errorlevel% equ 0 (
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo "Cleanup"
|
||||
REM Cleanup
|
||||
if exist "./tmp" (
|
||||
rmdir /s /q "./tmp"
|
||||
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
|
||||
REM Launch the Python application
|
||||
python app.py
|
||||
|
Loading…
Reference in New Issue
Block a user