From ed24c081666c1a7da02075b7028444be3fd882b9 Mon Sep 17 00:00:00 2001 From: Kent Slaney Date: Thu, 31 Oct 2024 09:33:47 -0700 Subject: [PATCH] all_tokens setter --- whisper/transcribe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whisper/transcribe.py b/whisper/transcribe.py index 3887433..d23e92a 100644 --- a/whisper/transcribe.py +++ b/whisper/transcribe.py @@ -279,7 +279,7 @@ class Transcriber(metaclass=PassthroughPropertyDefaults): _initial_finalized: bool = False _all_tokens: Optional[list] = None - @property + @PassthroughProperty[Optional[list]](None).property def all_tokens(self): if self._all_tokens is None: self._all_tokens = []