From 36596a136b68cfc7d4d52a35995f2af682f38fd3 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Tue, 18 Apr 2023 14:57:58 +0200 Subject: [PATCH] updated the install and run script for windows --- requirements.txt | 2 +- webui.bat | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 93d0d4cd..50f6b1e1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ flask nomic pytest -pyllamacpp +pyllamacpp==1.0.6 pyyaml markdown \ No newline at end of file diff --git a/webui.bat b/webui.bat index 530f3c8e..223de718 100644 --- a/webui.bat +++ b/webui.bat @@ -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 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 ..."