AliJabbarpour commited on
Commit
de36b5f
·
verified ·
1 Parent(s): 91cc478

Update pipeline/postprocess.py

Browse files
Files changed (1) hide show
  1. pipeline/postprocess.py +1 -1
pipeline/postprocess.py CHANGED
@@ -37,7 +37,7 @@ def merge_segments(segments: list) -> list:
37
  combined_duration = seg["end"] - current["start"]
38
  ends_sentence = current["text"].rstrip().endswith((".", "!", "?"))
39
 
40
- current_duration = current["end"] - current["start"]
41
  is_short = current_duration < 1.5
42
 
43
  should_merge = (
 
37
  combined_duration = seg["end"] - current["start"]
38
  ends_sentence = current["text"].rstrip().endswith((".", "!", "?"))
39
 
40
+ current_duration = current["end"] - current["start"]
41
  is_short = current_duration < 1.5
42
 
43
  should_merge = (