Update pipeline/postprocess.py
Browse files- 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
|
| 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 |
|