max_headroom/main.py
maglore9900 d1d412945b .
2024-08-28 10:23:42 -04:00

19 lines
371 B
Python

from modules import agent, speak
import asyncio
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
sp = speak.Speak()
graph = agent.Agent()
while True:
text = sp.listen()
if text and "max" in text.lower():
response = loop.run_until_complete(graph.invoke_agent(text))
if response:
sp.glitch_stream_output2(response)