daihui.zhang
commited on
Commit
·
0a6c788
1
Parent(s):
6485991
add words ignore
Browse files- transcribe/serve.py +1 -1
transcribe/serve.py
CHANGED
@@ -155,7 +155,7 @@ class WhisperTranscriptionService:
|
|
155 |
|
156 |
if len(segments):
|
157 |
seg_text = self.text_separator.join(seg.text for seg in segments)
|
158 |
-
if
|
159 |
continue
|
160 |
# 整行
|
161 |
if not partial:
|
|
|
155 |
|
156 |
if len(segments):
|
157 |
seg_text = self.text_separator.join(seg.text for seg in segments)
|
158 |
+
if seg_text.strip() in ['', '.', '-']: # 过滤空字符
|
159 |
continue
|
160 |
# 整行
|
161 |
if not partial:
|