From d4a600b568f9421ef1e6679f228d94681d405eed Mon Sep 17 00:00:00 2001 From: amosal Date: Tue, 31 Oct 2023 18:55:50 +0100 Subject: [PATCH] REMOVE duplicated code --- whisperx/utils.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/whisperx/utils.py b/whisperx/utils.py index 7c837a8..e687d23 100644 --- a/whisperx/utils.py +++ b/whisperx/utils.py @@ -226,9 +226,6 @@ class SubtitlesWriter(ResultWriter): highlight_words: bool = options["highlight_words"] max_line_width = 1000 if raw_max_line_width is None else raw_max_line_width preserve_segments = max_line_count is None or raw_max_line_width is None - - if len(result["segments"]) == 0: - return if len(result["segments"]) == 0: return