mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 17:14:36 +00:00
add short delay before launching browser
This commit is contained in:
parent
299d6ce0ed
commit
5a79dd57b9
1 changed files with 4 additions and 1 deletions
|
@ -5590,7 +5590,10 @@ def kcpp_main_process(launch_args, g_memory=None, gui_launcher=False):
|
|||
print(f"StableUI is available at {endpoint_url}/sdui/")
|
||||
global_memory["load_complete"] = True
|
||||
if args.launch:
|
||||
LaunchWebbrowser(endpoint_url,"--launch was set, but could not launch web browser automatically.")
|
||||
def launch_browser_thread():
|
||||
LaunchWebbrowser(endpoint_url,"--launch was set, but could not launch web browser automatically.")
|
||||
browser_thread = threading.Timer(2, launch_browser_thread) #2 second delay
|
||||
browser_thread.start()
|
||||
|
||||
if args.hordekey and args.hordekey!="":
|
||||
if args.hordeworkername and args.hordeworkername!="":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue