mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-18 02:39:47 +00:00
updarted cwenui
This commit is contained in:
parent
d7eb70625f
commit
2519ecb47c
227
c_webui.bat
227
c_webui.bat
@ -35,159 +35,80 @@ echo HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
|
||||
echo HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
|
||||
echo HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
|
||||
echo \u001b[0m
|
||||
echo Checking internet connection
|
||||
@echo off
|
||||
|
||||
ping google.com -n 1 >nul 2>&1
|
||||
if errorlevel 1 (
|
||||
echo Internet connection not available
|
||||
goto NO_INTERNET
|
||||
) else (
|
||||
goto INTERNET_OK
|
||||
)
|
||||
:NO_INTERNET
|
||||
|
||||
if exist lollms-webui (
|
||||
echo lollms-webui folder found
|
||||
cd lollms-webui
|
||||
set /p="Activating Conda environment ..." <nul
|
||||
call activate <conda_environment_name>
|
||||
)
|
||||
goto END
|
||||
|
||||
:INTERNET_OK
|
||||
echo \e[32mInternet connection working fine
|
||||
|
||||
REM Check if Git is installed
|
||||
echo "Checking for git..."
|
||||
where git >nul 2>&1
|
||||
if %ERRORLEVEL% EQU 0 (
|
||||
goto GIT_CHECKED
|
||||
) else (
|
||||
goto GIT_INSTALL
|
||||
)
|
||||
:GIT_FINISH
|
||||
|
||||
REM Check if Git is installed
|
||||
:GIT_CHECKED
|
||||
echo "Git is installed."
|
||||
goto GIT_SKIP
|
||||
|
||||
:GIT_INSTALL
|
||||
echo.
|
||||
choice /C YN /M "Do you want to download and install Git?"
|
||||
if errorlevel 2 goto GIT_CANCEL
|
||||
if errorlevel 1 goto GIT_INSTALL_2
|
||||
|
||||
:GIT_INSTALL_2
|
||||
echo "Git is not installed. Installing Git..."
|
||||
powershell.exe -Command "Start-Process https://git-scm.com/download/win -Wait"
|
||||
goto GIT_SKIP
|
||||
|
||||
:GIT_CANCEL
|
||||
echo.
|
||||
echo Git download cancelled.
|
||||
echo Please install Git and try again.
|
||||
pause
|
||||
exit /b 1
|
||||
|
||||
:GIT_SKIP
|
||||
|
||||
REM Check if repository exists
|
||||
echo checking git repository
|
||||
if exist ".git" (
|
||||
goto :PULL_CHANGES
|
||||
) else (
|
||||
goto :CLONE_REPO
|
||||
)
|
||||
|
||||
:PULL_CHANGES
|
||||
echo Pulling latest changes
|
||||
git pull origin main
|
||||
goto :CHECK_CONDA_INSTALL
|
||||
|
||||
:CLONE_REPO
|
||||
REM Check if repository exists
|
||||
if exist lollms-webui (
|
||||
echo lollms-webui folder found
|
||||
cd lollms-webui
|
||||
echo Pulling latest changes
|
||||
git pull
|
||||
) else (
|
||||
echo Cloning repository...
|
||||
rem Clone the Git repository into a temporary directory
|
||||
git clone https://github.com/ParisNeo/lollms-webui.git ./lollms-webui
|
||||
cd lollms-webui
|
||||
echo Pulling latest changes
|
||||
ping -n 1 google.com >nul
|
||||
if %errorlevel% equ 0 (
|
||||
echo Internet Connection working fine
|
||||
|
||||
REM Install Git
|
||||
echo Checking for Git...
|
||||
where git >nul 2>nul
|
||||
if %errorlevel% equ 0 (
|
||||
echo Git is installed
|
||||
) else (
|
||||
set /p choice=Git is not installed. Would you like to install Git? [Y/N]
|
||||
if /i "%choice%"=="Y" (
|
||||
echo Installing Git...
|
||||
REM Replace the following two lines with appropriate Git installation commands for Windows
|
||||
echo Please install Git and try again.
|
||||
exit /b 1
|
||||
)
|
||||
)
|
||||
|
||||
REM Check if repository exists
|
||||
if exist .git (
|
||||
echo Pulling latest changes
|
||||
git pull origin main
|
||||
) else (
|
||||
if exist lollms-webui (
|
||||
cd lollms-webui
|
||||
) else (
|
||||
echo Cloning repository...
|
||||
git clone https://github.com/ParisNeo/lollms-webui.git ./lollms-webui
|
||||
cd lollms-webui
|
||||
)
|
||||
)
|
||||
echo Pulling latest version...
|
||||
git pull
|
||||
|
||||
REM Install Conda
|
||||
echo Checking for Conda...
|
||||
where conda >nul 2>nul
|
||||
if %errorlevel% equ 0 (
|
||||
echo Conda is installed
|
||||
) else (
|
||||
set /p choice=Conda is not installed. Would you like to install Conda? [Y/N]
|
||||
if /i "%choice%"=="Y" (
|
||||
echo Installing Conda...
|
||||
REM Replace the following lines with appropriate Conda installation commands for Windows
|
||||
echo Please install Conda and try again.
|
||||
exit /b 1
|
||||
)
|
||||
)
|
||||
|
||||
REM Create a new Conda environment
|
||||
echo Creating Conda environment...
|
||||
conda create --prefix ./env python=3.10
|
||||
conda activate ./env
|
||||
echo Conda environment is created
|
||||
|
||||
REM Install the required packages
|
||||
echo Installing requirements...
|
||||
pip install --upgrade pip setuptools wheel
|
||||
pip install -r requirements.txt
|
||||
|
||||
if %errorlevel% neq 0 (
|
||||
echo Failed to install required packages. Please check your internet connection and try again.
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
REM Cleanup
|
||||
if exist "./tmp" (
|
||||
rmdir /s /q "./tmp"
|
||||
echo Cleaning tmp folder
|
||||
)
|
||||
|
||||
)
|
||||
|
||||
:CHECK_CONDA_INSTALL
|
||||
REM Check if Conda is installed
|
||||
set /p="Checking for Conda..." <nul
|
||||
where conda >nul 2>&1
|
||||
if %ERRORLEVEL% EQU 0 (
|
||||
goto CONDA_CHECKED
|
||||
) else (
|
||||
goto CONDA_INSTALL
|
||||
)
|
||||
:CONDA_CHECKED
|
||||
echo "Conda is installed."
|
||||
goto CONDA_SKIP
|
||||
|
||||
:CONDA_INSTALL
|
||||
echo.
|
||||
choice /C YN /M "Do you want to download and install Conda?"
|
||||
if errorlevel 2 goto CONDA_CANCEL
|
||||
if errorlevel 1 goto CONDA_INSTALL_2
|
||||
|
||||
:CONDA_INSTALL_2
|
||||
REM Download Conda installer
|
||||
if not exist "./tmp" mkdir "./tmp"
|
||||
echo Downloading Conda installer...
|
||||
powershell -Command "Invoke-WebRequest -Uri 'https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe' -OutFile 'tmp/conda.exe'"
|
||||
REM Install Conda
|
||||
echo Installing Conda...
|
||||
tmp/conda.exe /InstallationType=JustMe /AddToPath=0 /RegisterPython=0 /S
|
||||
|
||||
:CONDA_CANCEL
|
||||
echo Please install Conda and try again.
|
||||
pause
|
||||
exit /b 1
|
||||
|
||||
:CONDA_SKIP
|
||||
|
||||
REM Activate Conda environment
|
||||
set /p="Activating Conda environment ..." <nul
|
||||
conda activate <conda_environment_name>
|
||||
echo OK
|
||||
|
||||
REM Install the required packages
|
||||
echo Installing requirements ...
|
||||
conda install --file requirements.txt
|
||||
|
||||
if %ERRORLEVEL% neq 0 (
|
||||
echo Failed to install required packages. Please check your internet connection and try again.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo Checking models...
|
||||
if not exist \models (
|
||||
md \models
|
||||
)
|
||||
|
||||
:END
|
||||
if exist "./tmp" (
|
||||
echo Cleaning tmp folder
|
||||
rd /s /q "./tmp"
|
||||
)
|
||||
|
||||
echo Conda environment activated and packages installed successfully.
|
||||
echo Launching application...
|
||||
|
||||
REM Run the Python app
|
||||
python app.py %*
|
||||
set app_result=%errorlevel%
|
||||
|
||||
pause >nul
|
||||
exit /b 0
|
||||
REM Launch the Python application
|
||||
python app.py
|
||||
|
@ -112,6 +112,6 @@ if ping -q -c 1 google.com >/dev/null 2>&1; then
|
||||
echo "Cleaning tmp folder"
|
||||
fi
|
||||
|
||||
# Launch the Python application
|
||||
python app.py
|
||||
fi
|
||||
# Launch the Python application
|
||||
python app.py
|
||||
|
15
docs/youtube/script_lollms.md
Normal file
15
docs/youtube/script_lollms.md
Normal file
@ -0,0 +1,15 @@
|
||||
Hi Every one.
|
||||
This is a new video about Lord of Large language models, formally known as GPT4All webui.
|
||||
|
||||
In this video, we start by presenting the tool, its phylosophy and it's main goals. Then, we discuss how to install and use it, we dive deep into its different use cases and how you can harness the power of Large language models in one tool. We will also do some interesting tests and comparisons of models and bindings, and we'll finish by some thoughts about AI, its benefits and dangers.
|
||||
|
||||
To start, I have changed the name of the tool to confirm its identity as a separate free project that aims at supporting all those open source libraries for large language models.
|
||||
|
||||
The slogan is: One tool to rule them all. This tool uses multiple opensource libraries built by various developers from all around the world and creates a unique interface to talk to all of them in three different ways:
|
||||
First, you can use lollms as a library in a python project
|
||||
Second, you can use the socket-io API to trigger text generation from any program capable of talking to socket-io services. This covers a very large number of languages such as javascript, c#, c++ etc.
|
||||
The third use is by directly using out web-ui to interact with the language models.
|
||||
The web-ui has multiple functionalities and allow you to handle many tasks.
|
||||
|
||||
Now let's install the application.
|
||||
As usual, go to
|
Loading…
Reference in New Issue
Block a user