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