Gregniuki commited on
Commit
c41b58c
·
verified ·
1 Parent(s): d6d3147

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -356,7 +356,7 @@ def infer(ref_audio_orig, ref_text, gen_text, exp_name, remove_silence, cross_fa
356
 
357
  # Use the new chunk_text function to split gen_text
358
  max_chars = int(len(ref_text.encode('utf-8')) / (audio.shape[-1] / sr) * (25 - audio.shape[-1] / sr))
359
- gen_text_batches = chunk_text(gen_text, max_chars=135)
360
  print('ref_text', ref_text)
361
  for i, batch_text in enumerate(gen_text_batches):
362
  print(f'gen_text {i}', batch_text)
 
356
 
357
  # Use the new chunk_text function to split gen_text
358
  max_chars = int(len(ref_text.encode('utf-8')) / (audio.shape[-1] / sr) * (25 - audio.shape[-1] / sr))
359
+ gen_text_batches = chunk_text(gen_text, max_chars=100)
360
  print('ref_text', ref_text)
361
  for i, batch_text in enumerate(gen_text_batches):
362
  print(f'gen_text {i}', batch_text)