mirror of
https://github.com/openai/whisper.git
synced 2025-11-24 14:35:57 +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
|
_initial_finalized: bool = False
|
||||||
_all_tokens: Optional[list] = None
|
_all_tokens: Optional[list] = None
|
||||||
|
|
||||||
@property
|
@PassthroughProperty[Optional[list]](None).property
|
||||||
def all_tokens(self):
|
def all_tokens(self):
|
||||||
if self._all_tokens is None:
|
if self._all_tokens is None:
|
||||||
self._all_tokens = []
|
self._all_tokens = []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user