From 814a8ae2f3a52ff57741cf26be9f3602fd74bbaf Mon Sep 17 00:00:00 2001 From: bel Date: Sat, 8 Apr 2023 22:23:20 -0600 Subject: [PATCH] typo --- rust-whisper.d/hotwords.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rust-whisper.d/hotwords.py b/rust-whisper.d/hotwords.py index 7bdc700..51bc89e 100644 --- a/rust-whisper.d/hotwords.py +++ b/rust-whisper.d/hotwords.py @@ -143,10 +143,10 @@ class Parser(threading.Thread): log("raw transcript:", result) result = result.replace(">>", "") for pair in [ - ("[", "]") - ("(", ")") - ("<", ">") - ("*", "*") + ("[", "]"), + ("(", ")"), + ("<", ">"), + ("*", "*"), ]: result = "".join([i.split(pair[1])[-1] for i in result.split(pair[0])[0]]) if os.environ.get("DEBUG", None):