We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ead77fa commit 520796aCopy full SHA for 520796a
whisper/decoding.py
@@ -537,8 +537,7 @@ def _get_suppress_tokens(self) -> Tuple[int]:
537
elif suppress_tokens is None or len(suppress_tokens) == 0:
538
suppress_tokens = [] # interpret empty string as an empty list
539
else:
540
- assert isinstance(self.options.suppress_tokens, list), "suppress_tokens must be a list"
541
- suppress_tokens = self.options.suppress_tokens
+ assert isinstance(suppress_tokens, list), "suppress_tokens must be a list"
542
543
suppress_tokens.extend(
544
[self.tokenizer.sot, self.tokenizer.sot_prev, self.tokenizer.sot_lm]
0 commit comments