Skip to content

Commit 5a79dd5

Browse files
committed
add short delay before launching browser
1 parent 299d6ce commit 5a79dd5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

koboldcpp.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -5590,7 +5590,10 @@ def kcpp_main_process(launch_args, g_memory=None, gui_launcher=False):
55905590
print(f"StableUI is available at {endpoint_url}/sdui/")
55915591
global_memory["load_complete"] = True
55925592
if args.launch:
5593-
LaunchWebbrowser(endpoint_url,"--launch was set, but could not launch web browser automatically.")
5593+
def launch_browser_thread():
5594+
LaunchWebbrowser(endpoint_url,"--launch was set, but could not launch web browser automatically.")
5595+
browser_thread = threading.Timer(2, launch_browser_thread) #2 second delay
5596+
browser_thread.start()
55945597

55955598
if args.hordekey and args.hordekey!="":
55965599
if args.hordeworkername and args.hordeworkername!="":

0 commit comments

Comments
 (0)