From 8a8d60d5786510ec7b1dd4f622e848de8a15f8a8 Mon Sep 17 00:00:00 2001 From: 雾聪 <wucong.lyb@alibaba-inc.com> Date: 星期一, 15 一月 2024 16:36:51 +0800 Subject: [PATCH] replace NULL for onnxruntime/src --- funasr/utils/load_utils.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/funasr/utils/load_utils.py b/funasr/utils/load_utils.py index 638e0ac..4e131a8 100644 --- a/funasr/utils/load_utils.py +++ b/funasr/utils/load_utils.py @@ -48,7 +48,8 @@ pass # if data_in is a file or url, set is_final=True - kwargs["is_final"] = True + if "cache" in kwargs: + kwargs["cache"]["is_final"] = True elif isinstance(data_or_path_or_list, str) and data_type == "text" and tokenizer is not None: data_or_path_or_list = tokenizer.encode(data_or_path_or_list) elif isinstance(data_or_path_or_list, np.ndarray): # audio sample point -- Gitblit v1.9.1