mirror of
https://github.com/openai/whisper.git
synced 2025-11-24 06:26:03 +00:00
all_tokens setter
This commit is contained in:
parent
ad84a5f266
commit
ed24c08166
@ -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 = []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user