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