From 8bfad7002f619772a5164f2a98d1bb988f641295 Mon Sep 17 00:00:00 2001 From: andzejsp Date: Tue, 18 Apr 2023 17:54:19 +0300 Subject: [PATCH] more work --- tmpllama.cpp | 1 + webui.sh | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 160000 tmpllama.cpp diff --git a/tmpllama.cpp b/tmpllama.cpp new file mode 160000 index 00000000..42747220 --- /dev/null +++ b/tmpllama.cpp @@ -0,0 +1 @@ +Subproject commit 42747220b4cac548b6e3059b66b3e960b517cfa4 diff --git a/webui.sh b/webui.sh index e0aca3ba..970a0a87 100644 --- a/webui.sh +++ b/webui.sh @@ -36,3 +36,56 @@ echo "HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH echo "HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH" + +# Install git +echo -n "Checking for Git..." +if command -v git > /dev/null 2>&1; then + echo "is installed" +else + read -p "Git is not installed. Would you like to install Git? [Y/N] " choice + if [ "$choice" = "Y" ] || [ "$choice" = "y" ]; then + echo "Installing Git..." + sudo apt update + sudo apt install -y git + else + echo "Please install Git and try again." + exit 1 + fi +fi + +# Check if repository exists +if [[ -d .git ]] ;then +echo Pulling latest changes +##git pull origin main +else +echo Cloning repository... +##git init +##git remote add origin https://github.com/nomic-ai/gpt4all-ui.git +##git fetch +##git reset origin/main +##git checkout -t origin/main +##git pull origin main + +fi + +# Download latest personalities +if ! test -d ./tmp/personalities; then +## git clone https://github.com/ParisNeo/GPT4All_Personalities.git ./tmp/personalities +fi +##cp ./tmp/personalities/* ./personalities/ + +# Install Python 3.10 and pip +echo -n "Checking for python3.10..." +if command -v python3.10 > /dev/null 2>&1; then + echo "is installed" +else + read -p "Python3.10 is not installed. Would you like to install Python3.10? [Y/N] " choice + if [ "$choice" = "Y" ] || [ "$choice" = "y" ]; then + echo "Installing Python3.10..." + sudo apt update + sudo apt install -y python3.10 python3.10-venv + else + echo "Please install Python3.10 and try again." + exit 1 + fi +fi