From bde6e72b6d1aae0c6c75f1fdac002f70e6d32208 Mon Sep 17 00:00:00 2001 From: Yoshua Frey Date: Tue, 3 Dec 2024 00:54:58 +0100 Subject: [PATCH] Fix negative segment start --- finetune.py | 1 + 1 file changed, 1 insertion(+) diff --git a/finetune.py b/finetune.py index ce34e8f..41c1d39 100644 --- a/finetune.py +++ b/finetune.py @@ -1760,6 +1760,7 @@ def process_transcription_result( segment_content = "" segment_start = segment["words"][0].get("start", 0) - buffer_time + segment_start = max(0, segment_start) segment_end = segment_start for word_info in segment["words"]: