From 96b7f9d2cc857b72f4a7de5ebb1875b140d272f8 Mon Sep 17 00:00:00 2001 From: mrq Date: Fri, 17 Mar 2023 13:08:34 +0000 Subject: [PATCH] yammed --- src/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.py b/src/utils.py index 2712bac..8fb3e98 100755 --- a/src/utils.py +++ b/src/utils.py @@ -1894,7 +1894,7 @@ def tokenize_text( text, stringed=True, skip_specials=False ): if not tts: tokenizer = VoiceBpeTokenizer(args.tokenizer_json if args.tokenizer_json else get_tokenizer_jsons()[0]) else: - tts.tokenizer + tokenizer = tts.tokenizer encoded = tokenizer.encode(text) decoded = tokenizer.tokenizer.decode(encoded, skip_special_tokens=skip_specials).split(" ")