Skip to content

Commit

Permalink
updated the install and run script for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ParisNeo committed Apr 18, 2023
1 parent efc454d commit 36596a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
flask
nomic
pytest
pyllamacpp
pyllamacpp==1.0.6
pyyaml
markdown
10 changes: 8 additions & 2 deletions webui.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 36596a1

Please sign in to comment.