Skip to content

Commit

Permalink
Fix negative segment start
Browse files Browse the repository at this point in the history
  • Loading branch information
Yohrog committed Dec 2, 2024
1 parent 56f08ef commit bde6e72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand Down

0 comments on commit bde6e72

Please sign in to comment.