From 3bc0efcc1442a722dd00aa30857688e1252b07be Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期一, 22 七月 2024 20:05:03 +0800
Subject: [PATCH] python runtime
---
runtime/python/libtorch/funasr_torch/sensevoice_bin.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/runtime/python/libtorch/funasr_torch/sensevoice_bin.py b/runtime/python/libtorch/funasr_torch/sensevoice_bin.py
index 0eebd01..2f66f4e 100644
--- a/runtime/python/libtorch/funasr_torch/sensevoice_bin.py
+++ b/runtime/python/libtorch/funasr_torch/sensevoice_bin.py
@@ -112,7 +112,7 @@
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
--
Gitblit v1.9.1