feat: wait until llm processor is ready
This commit is contained in:
parent
b5fb3642bb
commit
eb704bf23f
1 changed files with 2 additions and 0 deletions
2
main.py
2
main.py
|
|
@ -35,6 +35,8 @@ def main():
|
||||||
# if test flag set from args, process text
|
# if test flag set from args, process text
|
||||||
print("trace: sys.argv", sys.argv)
|
print("trace: sys.argv", sys.argv)
|
||||||
if any("--test-llm" in arg for arg in 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"))
|
llm_processor.process_text("hello LLM", lambda result: print(f"\nLLM Response:\n{result}\n"))
|
||||||
|
|
||||||
# Initialize speech-to-text if enabled
|
# Initialize speech-to-text if enabled
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue