From c09790488bfa5a2fbf9d7decbd8d5747df4f5b27 Mon Sep 17 00:00:00 2001 From: Kent Slaney Date: Sun, 14 Jul 2024 19:37:18 -0600 Subject: [PATCH] simplify auto-formatting output --- whisper/transcribe.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/whisper/transcribe.py b/whisper/transcribe.py index 758c0b4..069c5ed 100644 --- a/whisper/transcribe.py +++ b/whisper/transcribe.py @@ -212,9 +212,7 @@ class Transcriber(metaclass=PassthroughPropertyDefaults): def task(self, value: str): self._task = value if self.word_timestamps and value == "translate": - warnings.warn( - "Word-level timestamps on translations may not be " "reliable." - ) + warnings.warn("Word-level timestamps on translations may not be reliable.") @PassthroughProperty(False).setter def word_timestamps(self, value: bool):