This commit is contained in:
Saifeddine ALOUI 2024-03-01 01:34:54 +01:00
parent 58f3772b5f
commit 0caf647bb9
6 changed files with 14 additions and 5 deletions

7
app.py
View File

@ -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.")

@ -1 +1 @@
Subproject commit 8b7edf241c1122b849a5c9f10e75b78f312363f5
Subproject commit 6b258468d01142dbbc82b59eb331a10709b17026

View File

@ -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 ║ ")

View File

@ -23,4 +23,5 @@ python-socketio[client]
python-socketio[asyncio_client]
pydantic
selenium
selenium
tiktoken

View File

@ -31,4 +31,5 @@ python-socketio[client]
python-socketio[asyncio_client]
pydantic
selenium
selenium
tiktoken

@ -1 +1 @@
Subproject commit 387a4a8d63a14b45f0813aae4a11e03dd9cc3b54
Subproject commit 598a9d39639adeaa95eabbc1ec0ff55b35c95317