mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-02-06 10:59:23 +00:00
updated
This commit is contained in:
parent
089ea35750
commit
8d06362e55
@ -17,7 +17,7 @@ from lollms.utilities import load_config
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import List
|
from typing import List
|
||||||
import sys
|
import sys
|
||||||
|
import socketio
|
||||||
# ----------------------- Defining router and main class ------------------------------
|
# ----------------------- Defining router and main class ------------------------------
|
||||||
|
|
||||||
# Create an instance of the LoLLMSWebUI class
|
# Create an instance of the LoLLMSWebUI class
|
||||||
@ -35,7 +35,7 @@ async def get_lollms_webui_version():
|
|||||||
async def restart_program():
|
async def restart_program():
|
||||||
"""Restart the program."""
|
"""Restart the program."""
|
||||||
# Stop the socketIO server
|
# Stop the socketIO server
|
||||||
lollmsElfServer.socketio.stop()
|
lollmsElfServer.socketio.shutdown()
|
||||||
# Sleep for 1 second before rebooting
|
# Sleep for 1 second before rebooting
|
||||||
lollmsElfServer.socketio.sleep(1)
|
lollmsElfServer.socketio.sleep(1)
|
||||||
# Reboot the program
|
# Reboot the program
|
||||||
@ -55,7 +55,8 @@ async def update_software():
|
|||||||
ASCIIColors.info("")
|
ASCIIColors.info("")
|
||||||
ASCIIColors.info("")
|
ASCIIColors.info("")
|
||||||
# Stop the socketIO server
|
# Stop the socketIO server
|
||||||
lollmsElfServer.socketio.stop()
|
lollmsElfServer.socketio.shutdown()
|
||||||
|
|
||||||
# Run the update script using the provided arguments
|
# Run the update script using the provided arguments
|
||||||
lollmsElfServer.run_update_script(lollmsElfServer.args)
|
lollmsElfServer.run_update_script(lollmsElfServer.args)
|
||||||
# Exit the program after successful update
|
# Exit the program after successful update
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 01302d7d007ba3b67e145a469f40fb389e4ee48a
|
Subproject commit aad6e2e685eab6acc1d7d67621a1d1b8a9bb3169
|
Loading…
x
Reference in New Issue
Block a user