mirror of
https://github.com/maglore9900/max_headroom.git
synced 2025-06-06 19:45:31 +00:00
17 lines
497 B
Python
17 lines
497 B
Python
from modules import agent
|
|
import asyncio
|
|
|
|
loop = asyncio.new_event_loop()
|
|
asyncio.set_event_loop(loop)
|
|
graph = agent.Agent()
|
|
|
|
while True:
|
|
text = graph.spk.listen3()
|
|
if text and "hey" in text.lower() and "max " in text.lower() or text and "hey" in text.lower() and "mac " in text.lower():
|
|
if "exit" in text.lower():
|
|
break
|
|
response = loop.run_until_complete(graph.invoke_agent(text))
|
|
if response:
|
|
graph.spk.glitch_stream_output(response)
|
|
|