From 0caf647bb9267d922756d4bd7709ad8233593620 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Fri, 1 Mar 2024 01:34:54 +0100 Subject: [PATCH] sync --- app.py | 7 +++++++ lollms_core | 2 +- lollms_webui.py | 2 +- requirements.txt | 3 ++- requirements_dev.txt | 3 ++- zoos/bindings_zoo | 2 +- 6 files changed, 14 insertions(+), 5 deletions(-) diff --git a/app.py b/app.py index 06068a72..237b2c9d 100644 --- a/app.py +++ b/app.py @@ -23,6 +23,8 @@ from socketio import ASGIApp import webbrowser import threading import os +import sys + from fastapi import FastAPI, Request from fastapi.responses import JSONResponse @@ -49,6 +51,11 @@ app = FastAPI(title="LoLLMS", description="This is the LoLLMS-Webui API document #app.mount("/socket.io", StaticFiles(directory="path/to/socketio.js")) if __name__ == "__main__": + desired_version = (3, 11) + + if not sys.version_info >= desired_version: + ASCIIColors.error(f"Your Python version is {sys.version_info.major}.{sys.version_info.minor}, but version {desired_version[0]}.{desired_version[1]} or higher is required.") + sys.exit(1) # Parsong parameters parser = argparse.ArgumentParser(description="Start the chatbot FastAPI app.") diff --git a/lollms_core b/lollms_core index 8b7edf24..6b258468 160000 --- a/lollms_core +++ b/lollms_core @@ -1 +1 @@ -Subproject commit 8b7edf241c1122b849a5c9f10e75b78f312363f5 +Subproject commit 6b258468d01142dbbc82b59eb331a10709b17026 diff --git a/lollms_webui.py b/lollms_webui.py index 1d3a7cdd..b4c52520 100644 --- a/lollms_webui.py +++ b/lollms_webui.py @@ -398,7 +398,7 @@ class LOLLMSWebUI(LOLLMSElfServer): self.mounted_personalities=[] loaded = self.mounted_personalities - loaded_names = [f"{p.category}/{p.personality_folder_name}:{p.selected_language}" if p.selected_language else f"{p.category}/{p.personality_folder_name}" for p in loaded] + loaded_names = [f"{p.category}/{p.personality_folder_name}:{p.selected_language}" if p.selected_language else f"{p.category}/{p.personality_folder_name}" for p in loaded if p is not None] mounted_personalities=[] ASCIIColors.success(f" ╔══════════════════════════════════════════════════╗ ") ASCIIColors.success(f" ║ Building mounted Personalities ║ ") diff --git a/requirements.txt b/requirements.txt index 4d6fe8ca..58b50135 100644 --- a/requirements.txt +++ b/requirements.txt @@ -23,4 +23,5 @@ python-socketio[client] python-socketio[asyncio_client] pydantic -selenium \ No newline at end of file +selenium +tiktoken \ No newline at end of file diff --git a/requirements_dev.txt b/requirements_dev.txt index d505eeef..844bb8cf 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -31,4 +31,5 @@ python-socketio[client] python-socketio[asyncio_client] pydantic -selenium \ No newline at end of file +selenium +tiktoken \ No newline at end of file diff --git a/zoos/bindings_zoo b/zoos/bindings_zoo index 387a4a8d..598a9d39 160000 --- a/zoos/bindings_zoo +++ b/zoos/bindings_zoo @@ -1 +1 @@ -Subproject commit 387a4a8d63a14b45f0813aae4a11e03dd9cc3b54 +Subproject commit 598a9d39639adeaa95eabbc1ec0ff55b35c95317