AliJabbarpour commited on
Commit
7fcd56b
·
verified ·
1 Parent(s): 1abb2f1

Update pipeline/postprocess.py

Browse files
Files changed (1) hide show
  1. pipeline/postprocess.py +2 -1
pipeline/postprocess.py CHANGED
@@ -50,9 +50,10 @@ def merge_segments(segments: list) -> list:
50
  not ends_sentence
51
  and combined_duration <= MAX_DISPLAY
52
  and same_speaker
 
53
  and (
54
  is_short
55
- or (len(combined_text) <= MERGE_MAX_CHARS and gap <= MAX_GAP)
56
  )
57
  )
58
 
 
50
  not ends_sentence
51
  and combined_duration <= MAX_DISPLAY
52
  and same_speaker
53
+ and gap <= MAX_GAP
54
  and (
55
  is_short
56
+ or len(combined_text) <= MERGE_MAX_CHARS
57
  )
58
  )
59