mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-18 20:17:50 +00:00
sync
This commit is contained in:
parent
58f3772b5f
commit
0caf647bb9
7
app.py
7
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.")
|
||||
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 8b7edf241c1122b849a5c9f10e75b78f312363f5
|
||||
Subproject commit 6b258468d01142dbbc82b59eb331a10709b17026
|
@ -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 ║ ")
|
||||
|
@ -23,4 +23,5 @@ python-socketio[client]
|
||||
python-socketio[asyncio_client]
|
||||
|
||||
pydantic
|
||||
selenium
|
||||
selenium
|
||||
tiktoken
|
@ -31,4 +31,5 @@ python-socketio[client]
|
||||
python-socketio[asyncio_client]
|
||||
|
||||
pydantic
|
||||
selenium
|
||||
selenium
|
||||
tiktoken
|
@ -1 +1 @@
|
||||
Subproject commit 387a4a8d63a14b45f0813aae4a11e03dd9cc3b54
|
||||
Subproject commit 598a9d39639adeaa95eabbc1ec0ff55b35c95317
|
Loading…
Reference in New Issue
Block a user