14 lines
310 B
Python
14 lines
310 B
Python
from brain_openai import CloudChatBrain
|
|
|
|
|
|
brain = CloudChatBrain()
|
|
|
|
while True:
|
|
try:
|
|
brain.listen()
|
|
if not brain.is_emergency(brain.cmd_prompt):
|
|
brain.understand()
|
|
brain.command()
|
|
except Exception as e:
|
|
print(f"##### SOMETHING WENT WRONG ###### \n {e}")
|