From 7b2aa51abc87169b9869cf9a6a76a7d4462b4c0d Mon Sep 17 00:00:00 2001 From: mrq Date: Mon, 6 Mar 2023 21:32:20 +0000 Subject: [PATCH] oops --- tortoise/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tortoise/api.py b/tortoise/api.py index 5ed7843..32016cd 100755 --- a/tortoise/api.py +++ b/tortoise/api.py @@ -542,7 +542,7 @@ class TextToSpeech: if autoregressive_model is None: autoregressive_model = self.autoregressive_model_path elif autoregressive_model != self.autoregressive_model_path: - load_autoregressive_model(autoregressive_model) + self.load_autoregressive_model(autoregressive_model) text_tokens = torch.IntTensor(self.tokenizer.encode(text)).unsqueeze(0).to(self.device) text_tokens = F.pad(text_tokens, (0, 1)) # This may not be necessary.