Skip to content

Commit

Permalink
Merge pull request #514 from rmusser01/dev
Browse files Browse the repository at this point in the history
token count for Kokoro
  • Loading branch information
rmusser01 authored Jan 30, 2025
2 parents a287edf + a9c1366 commit 4ddfbfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion App_Function_Libraries/TTS/TTS_Providers_Local.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def _handle_pytorch_generation(

tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")
logging.debug("Splitting text into chunks...")
text_chunks = split_text_into_sentence_chunks(text, 50, tokenizer)
text_chunks = split_text_into_sentence_chunks(text, 150, tokenizer)

logging.debug("Getting Kokoro model and voicepack...")
# Get default voicepack if not found
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ bert_score
chardet
chromadb
docx2txt
EbookLib
ebooklib
elasticsearch
fastapi
faster_whisper
Expand Down

0 comments on commit 4ddfbfe

Please sign in to comment.