From b5b68ad51f37f6c2bc879efac96621e66384e287 Mon Sep 17 00:00:00 2001 From: erew123 <35898566+erew123@users.noreply.github.com> Date: Sat, 23 Dec 2023 00:16:38 +0000 Subject: [PATCH] Update script.py updated timeout --- script.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script.py b/script.py index a641bf9..c185a33 100644 --- a/script.py +++ b/script.py @@ -248,7 +248,7 @@ else: # Cleanly kill off this script, but allow text-generation-webui to keep running, albeit without this alltalk_tts sys.exit(1) -timeout = 60 # Adjust the timeout as needed +timeout = 120 # Adjust the timeout as needed # Introduce a delay before starting the check loop time.sleep(25) # Wait 25 secs before checking if the tts_server.py has started up. @@ -261,7 +261,7 @@ while time.time() - start_time < timeout: except requests.RequestException as e: # Print the exception for debugging purposes print( - f"[{params['branding']}Startup] \033[91mWarning\033[0m TTS Subprocess has NOT started up yet, Will keep trying for 60 seconds maximum. Please wait." + f"[{params['branding']}Startup] \033[91mWarning\033[0m TTS Subprocess has NOT started up yet, Will keep trying for 120 seconds maximum. Please wait." ) time.sleep(1) else: @@ -888,4 +888,4 @@ if running_in_standalone: try: time.sleep(1) # Add a small delay to avoid high CPU usage except KeyboardInterrupt: - break # Allow graceful exit on Ctrl+C \ No newline at end of file + break # Allow graceful exit on Ctrl+C