From 8d06362e550b1b00d128961ff132198e63e94af5 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Sun, 14 Jan 2024 00:42:18 +0100 Subject: [PATCH] updated --- endpoints/lollms_webui_infos.py | 7 ++++--- lollms_core | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/endpoints/lollms_webui_infos.py b/endpoints/lollms_webui_infos.py index 3808c65a..9512105e 100644 --- a/endpoints/lollms_webui_infos.py +++ b/endpoints/lollms_webui_infos.py @@ -17,7 +17,7 @@ from lollms.utilities import load_config from pathlib import Path from typing import List import sys - +import socketio # ----------------------- Defining router and main class ------------------------------ # Create an instance of the LoLLMSWebUI class @@ -35,7 +35,7 @@ async def get_lollms_webui_version(): async def restart_program(): """Restart the program.""" # Stop the socketIO server - lollmsElfServer.socketio.stop() + lollmsElfServer.socketio.shutdown() # Sleep for 1 second before rebooting lollmsElfServer.socketio.sleep(1) # Reboot the program @@ -55,7 +55,8 @@ async def update_software(): ASCIIColors.info("") ASCIIColors.info("") # Stop the socketIO server - lollmsElfServer.socketio.stop() + lollmsElfServer.socketio.shutdown() + # Run the update script using the provided arguments lollmsElfServer.run_update_script(lollmsElfServer.args) # Exit the program after successful update diff --git a/lollms_core b/lollms_core index 01302d7d..aad6e2e6 160000 --- a/lollms_core +++ b/lollms_core @@ -1 +1 @@ -Subproject commit 01302d7d007ba3b67e145a469f40fb389e4ee48a +Subproject commit aad6e2e685eab6acc1d7d67621a1d1b8a9bb3169