From c84883ecf2c240792392353175b634f6ec92a011 Mon Sep 17 00:00:00 2001 From: Laurent Mazare Date: Mon, 14 Aug 2023 13:12:17 +0100 Subject: Add a cuda kernel for upsampling. (#441) * Add a cuda kernel for upsampling. * Update for the latest tokenizers version. --- candle-wasm-examples/whisper/src/worker.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'candle-wasm-examples') diff --git a/candle-wasm-examples/whisper/src/worker.rs b/candle-wasm-examples/whisper/src/worker.rs index 139755cb..d77d3e32 100644 --- a/candle-wasm-examples/whisper/src/worker.rs +++ b/candle-wasm-examples/whisper/src/worker.rs @@ -159,10 +159,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 { -- cgit v1.2.3