fix: accept any position for --test-llm flag
This commit is contained in:
parent
7e9d3a9fdb
commit
b5fb3642bb
1 changed files with 2 additions and 1 deletions
3
main.py
3
main.py
|
|
@ -33,7 +33,8 @@ def main():
|
||||||
llm_processor = LLMProcessor(script_path)
|
llm_processor = LLMProcessor(script_path)
|
||||||
|
|
||||||
# if test flag set from args, process text
|
# if test flag set from args, process text
|
||||||
if sys.argv[1] == "--test-llm":
|
print("trace: sys.argv", sys.argv)
|
||||||
|
if any("--test-llm" in arg for arg in sys.argv):
|
||||||
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