Skip to content

Commit 02aa851

Browse files
committed
fix to return only the text token ids
1 parent 76148a5 commit 02aa851

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

whisper/transcribe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def add_segment(
157157
"start": start,
158158
"end": end,
159159
"text": text,
160-
"tokens": result.tokens,
160+
"tokens": text_tokens.tolist(),
161161
"temperature": result.temperature,
162162
"avg_logprob": result.avg_logprob,
163163
"compression_ratio": result.compression_ratio,

0 commit comments

Comments
 (0)