From 6fc4e6f230c46996cfbd6ad91a32145d06020b1f Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Tue, 18 Apr 2023 15:13:07 +0800 Subject: [PATCH] fix id start --- whisper/transcribe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whisper/transcribe.py b/whisper/transcribe.py index 80f6dab..97bb2d6 100644 --- a/whisper/transcribe.py +++ b/whisper/transcribe.py @@ -360,7 +360,7 @@ def transcribe( [token for segment in current_segments for token in segment["tokens"]] ) - for i, segment in enumerate(current_segments): + for i, segment in enumerate(current_segments, start=len(all_segments)): if not segment['text'].strip(): continue if len(all_prompts_segments) > 0 and all_prompts_segments[-1]['text'].strip() == segment['text'].strip():