From eb704bf23fbd9214ba17b53e2c7e54c49672052f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20H=C3=A4usler?= Date: Thu, 3 Jul 2025 01:51:34 +0200 Subject: [PATCH] feat: wait until llm processor is ready --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 92be22d..4a21ab6 100644 --- a/main.py +++ b/main.py @@ -35,6 +35,8 @@ def main(): # if test flag set from args, process text print("trace: sys.argv", sys.argv) if any("--test-llm" in arg for arg in sys.argv): + while not llm_processor.initialized: + time.sleep(1) llm_processor.process_text("hello LLM", lambda result: print(f"\nLLM Response:\n{result}\n")) # Initialize speech-to-text if enabled