Skip to content
Snippets Groups Projects
Commit c88eec7e authored by Andres Marafioti's avatar Andres Marafioti
Browse files

fix

parent 274f27a7
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment