We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed24175 commit 5fcc6beCopy full SHA for 5fcc6be
whisper/transcribe.py
@@ -171,7 +171,8 @@ def add_segment(
171
line = f"[{format_timestamp(start)} --> {format_timestamp(end)}] {text}\n"
172
# compared to just `print(line)`, this replaces any character not representable using
173
# the system default encoding with an '?', avoiding UnicodeEncodeError.
174
- sys.stderr.buffer.write(line.encode(sys.getdefaultencoding(), errors="replace"))
+ sys.stdout.buffer.write(line.encode(sys.getdefaultencoding(), errors="replace"))
175
+ sys.stdout.flush()
176
177
# show the progress bar when verbose is False (otherwise the transcribed text will be printed)
178
num_frames = mel.shape[-1]
0 commit comments