From c0e7b17f089f17240fa5da9aea928100044a6565 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=B8=E9=9B=81?= Date: Wed, 25 Sep 2024 16:32:58 +0800 Subject: [PATCH] sensevoice bugfix --- funasr/auto/auto_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/funasr/auto/auto_model.py b/funasr/auto/auto_model.py index 9f5f4fb6e..e08cb2bd7 100644 --- a/funasr/auto/auto_model.py +++ b/funasr/auto/auto_model.py @@ -228,8 +228,8 @@ class AutoModel: if token_list is not None: vocab_size = len(token_list) - if vocab_size == -1 and hasattr(tokenizer, "get_vocab_size"): - vocab_size = tokenizer.get_vocab_size() + if vocab_size == -1 and hasattr(tokenizer, "get_vocab_size"): + vocab_size = tokenizer.get_vocab_size() token_lists.append(token_list) vocab_sizes.append(vocab_size)