mirror of
https://github.com/openai/whisper.git
synced 2025-11-24 14:35:57 +00:00
simplify auto-formatting output
This commit is contained in:
parent
0621ed8094
commit
c09790488b
@ -212,9 +212,7 @@ class Transcriber(metaclass=PassthroughPropertyDefaults):
|
|||||||
def task(self, value: str):
|
def task(self, value: str):
|
||||||
self._task = value
|
self._task = value
|
||||||
if self.word_timestamps and value == "translate":
|
if self.word_timestamps and value == "translate":
|
||||||
warnings.warn(
|
warnings.warn("Word-level timestamps on translations may not be reliable.")
|
||||||
"Word-level timestamps on translations may not be " "reliable."
|
|
||||||
)
|
|
||||||
|
|
||||||
@PassthroughProperty(False).setter
|
@PassthroughProperty(False).setter
|
||||||
def word_timestamps(self, value: bool):
|
def word_timestamps(self, value: bool):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user