diff options
Diffstat (limited to 'candle-examples/examples/whisper/main.rs')
-rw-r--r-- | candle-examples/examples/whisper/main.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/candle-examples/examples/whisper/main.rs b/candle-examples/examples/whisper/main.rs index 99919f8d..5c58c002 100644 --- a/candle-examples/examples/whisper/main.rs +++ b/candle-examples/examples/whisper/main.rs @@ -169,10 +169,7 @@ impl Decoder { } sum_logprob += prob.ln(); } - let text = self - .tokenizer - .decode(tokens.clone(), true) - .map_err(E::msg)?; + let text = self.tokenizer.decode(&tokens, true).map_err(E::msg)?; let avg_logprob = sum_logprob / tokens.len() as f64; Ok(DecodingResult { |