Skip to content

Commit

Permalink
fix to return only the text token ids
Browse files Browse the repository at this point in the history
  • Loading branch information
jongwook committed Nov 16, 2022
1 parent 76148a5 commit 02aa851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion whisper/transcribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def add_segment(
"start": start,
"end": end,
"text": text,
"tokens": result.tokens,
"tokens": text_tokens.tolist(),
"temperature": result.temperature,
"avg_logprob": result.avg_logprob,
"compression_ratio": result.compression_ratio,
Expand Down

0 comments on commit 02aa851

Please sign in to comment.