LichtLiu commited on
Commit
50f5ea1
1 Parent(s): 9e4db4b
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -61,7 +61,7 @@ def split_text_into_chunks(text, max_tokens):
61
 
62
  return chunks
63
 
64
- def textToSpeech(speaker="543", expression):
65
  speaker_embeddings = torch.tensor(embeddings_dataset[int(speaker)]["xvector"]).unsqueeze(0).to(device)
66
  max_token_limit = 600 # Set the token limit for your model
67
  chunks = split_text_into_chunks(expression, max_token_limit)
 
61
 
62
  return chunks
63
 
64
+ def textToSpeech(speaker="543", expression=""):
65
  speaker_embeddings = torch.tensor(embeddings_dataset[int(speaker)]["xvector"]).unsqueeze(0).to(device)
66
  max_token_limit = 600 # Set the token limit for your model
67
  chunks = split_text_into_chunks(expression, max_token_limit)