mirror of
https://github.com/openai/whisper.git
synced 2025-11-24 14:35:57 +00:00
fix to return only the text token ids
This commit is contained in:
parent
76148a56c5
commit
02aa851a49
@ -157,7 +157,7 @@ def transcribe(
|
|||||||
"start": start,
|
"start": start,
|
||||||
"end": end,
|
"end": end,
|
||||||
"text": text,
|
"text": text,
|
||||||
"tokens": result.tokens,
|
"tokens": text_tokens.tolist(),
|
||||||
"temperature": result.temperature,
|
"temperature": result.temperature,
|
||||||
"avg_logprob": result.avg_logprob,
|
"avg_logprob": result.avg_logprob,
|
||||||
"compression_ratio": result.compression_ratio,
|
"compression_ratio": result.compression_ratio,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user