From c88eec7e269edb8687e5f2e4eb996b06bc3bbd09 Mon Sep 17 00:00:00 2001 From: Andres Marafioti <andimarafioti@gmail.com> Date: Thu, 5 Sep 2024 17:02:34 +0200 Subject: [PATCH] fix --- TTS/parler_handler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TTS/parler_handler.py b/TTS/parler_handler.py index 5cc0ce9..e8c6c55 100644 --- a/TTS/parler_handler.py +++ b/TTS/parler_handler.py @@ -147,6 +147,9 @@ class ParlerTTSHandler(BaseHandler): ) def process(self, llm_sentence): + if isinstance(llm_sentence, tuple): + llm_sentence, _ = llm_sentence + console.print(f"[green]ASSISTANT: {llm_sentence}") nb_tokens = len(self.prompt_tokenizer(llm_sentence).input_ids) -- GitLab