This commit is contained in:
Saifeddine ALOUI 2023-06-25 20:33:00 +02:00
parent 1c1121b4d4
commit 98bf95c2aa

View File

@ -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