csukuangfj
commited on
Commit
•
6e2b473
1
Parent(s):
7b9ff19
small fixes
Browse files
decode.py
CHANGED
@@ -111,7 +111,7 @@ def decode(
|
|
111 |
|
112 |
recognizer.decode_streams(streams)
|
113 |
for seg, stream in zip(segments, streams):
|
114 |
-
seg.text = stream.result.text
|
115 |
segment_list.append(seg)
|
116 |
|
117 |
return "\n\n".join(f"{i}\n{seg} " for i, seg in enumerate(segment_list, 1))
|
|
|
111 |
|
112 |
recognizer.decode_streams(streams)
|
113 |
for seg, stream in zip(segments, streams):
|
114 |
+
seg.text = stream.result.text.strip()
|
115 |
segment_list.append(seg)
|
116 |
|
117 |
return "\n\n".join(f"{i}\n{seg} " for i, seg in enumerate(segment_list, 1))
|