daihui.zhang
commited on
Commit
·
b2b3b92
1
Parent(s):
7e663f9
filter pendding text is empty message
Browse files- transcribe/strategy.py +5 -4
transcribe/strategy.py
CHANGED
|
@@ -312,10 +312,11 @@ class TranscriptStabilityAnalyzer:
|
|
| 312 |
context=self._transcript_buffer.latest_paragraph,
|
| 313 |
is_end_sentence=True
|
| 314 |
)
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
|
|
|
| 319 |
else:
|
| 320 |
yield TranscriptResult(
|
| 321 |
seg_id=self._transcript_buffer.get_seg_id(),
|
|
|
|
| 312 |
context=self._transcript_buffer.latest_paragraph,
|
| 313 |
is_end_sentence=True
|
| 314 |
)
|
| 315 |
+
if (context := self._transcript_buffer.current_not_commit_text.strip()):
|
| 316 |
+
yield TranscriptResult(
|
| 317 |
+
seg_id=self._transcript_buffer.get_seg_id(),
|
| 318 |
+
context=context,
|
| 319 |
+
)
|
| 320 |
else:
|
| 321 |
yield TranscriptResult(
|
| 322 |
seg_id=self._transcript_buffer.get_seg_id(),
|