From 3bc0efcc1442a722dd00aa30857688e1252b07be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=B8=E9=9B=81?= Date: Mon, 22 Jul 2024 20:05:03 +0800 Subject: [PATCH] python runtime --- runtime/python/libtorch/funasr_torch/sensevoice_bin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/python/libtorch/funasr_torch/sensevoice_bin.py b/runtime/python/libtorch/funasr_torch/sensevoice_bin.py index 0eebd0116..2f66f4e6f 100644 --- a/runtime/python/libtorch/funasr_torch/sensevoice_bin.py +++ b/runtime/python/libtorch/funasr_torch/sensevoice_bin.py @@ -112,7 +112,7 @@ class SenseVoiceSmall: token_int = yseq[mask].tolist() if tokenizer is not None: - asr_res.append(tokenizer.decode(token_int)) + asr_res.append(self.tokenizer.decode(token_int)) else: asr_res.append(token_int) return asr_res