From 68b6667c76dede496242fec81cc0d34e684fc5be Mon Sep 17 00:00:00 2001 From: bel Date: Sat, 25 Mar 2023 20:45:31 -0600 Subject: [PATCH] har we go --- whisper-2023/hotwords.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/whisper-2023/hotwords.py b/whisper-2023/hotwords.py index 674b4b1..ea7709c 100644 --- a/whisper-2023/hotwords.py +++ b/whisper-2023/hotwords.py @@ -105,11 +105,14 @@ class Reactor(threading.Thread): def run(self): log("Reactor.run: start") while True: - got = self.inq.get() - if not got: + text = self.inq.get() + if text is None: break - print(got) + self.handle(text) log("Reactor.run: stop") + def handle(self, text): + print(text) + if __name__ == "__main__": main()