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):