diff --git a/koboldcpp.py b/koboldcpp.py index c40f336d0..74ad883e1 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -2713,7 +2713,7 @@ class KcppServerRequestHandler(http.server.SimpleHTTPRequestHandler): updated_query_string = urlparse.urlencode(parsed_dict, doseq=True) updated_path = parsed_url._replace(query=updated_query_string).geturl() self.path = updated_path - time.sleep(0.3) #short delay + time.sleep(0.5) #short delay self.send_response(302) self.send_header("location", self.path) self.end_headers(content_type='text/html') @@ -6504,7 +6504,7 @@ def kcpp_main_process(launch_args, g_memory=None, gui_launcher=False): # patch it with extra stuff patches = [{"find":"Sorry, KoboldAI Lite requires Javascript to function.","replace":"Sorry, KoboldAI Lite requires Javascript to function.
You can use KoboldCpp NoScript mode instead."}, {"find":"var localflag = urlParams.get('local');","replace":"var localflag = true;"}, - {"find":"

Loading...

","replace":"

Loading...
(If load fails, try KoboldCpp NoScript mode instead.)

"}] + {"find":"

Loading...

","replace":"

Loading...
(If load fails, try KoboldCpp NoScript mode instead, or adding /noscript at this url.)

"}] embedded_kailite = embedded_kailite.decode("UTF-8","ignore") for p in patches: embedded_kailite = embedded_kailite.replace(p["find"], p["replace"])