updated the install and run script for windows

This commit is contained in:
Saifeddine ALOUI 2023-04-18 14:57:58 +02:00
parent efc454dd0c
commit 36596a136b
2 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,6 @@
flask
nomic
pytest
pyllamacpp
pyllamacpp==1.0.6
pyyaml
markdown

View File

@ -200,6 +200,12 @@ exit /b 1
:VENV_SKIP
echo Checking virtual environment.
if exist ./env (
echo Virtual environment already exists.
goto VENV_CREATED
)
REM Create a new virtual environment
set /p="Creating virtual environment ..." <nul
python -m venv env >nul 2>&1
@ -210,9 +216,9 @@ if %ERRORLEVEL% EQU 0 (
pause
exit /b 1
)
:VENV_CREATED
REM Activate the virtual environment
set /p="Activating virtual environment ..." <nul
call env\Scripts\activate.bat
@ -232,7 +238,7 @@ if not exist \models (
md \models
)
if not exist \models/gpt4all-lora-quantized-ggml.bin (
if not exist ./models/gpt4all-lora-quantized-ggml.bin (
echo.
choice /C YNB /M "The default model file (gpt4all-lora-quantized-ggml.bin) does not exist. Do you want to download it? Press B to download it with a browser (faster)."
if errorlevel 3 goto DOWNLOAD_WITH_BROWSER