Gregniuki commited on
Commit
52205dc
·
verified ·
1 Parent(s): 41719f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -416,7 +416,7 @@ def infer(ref_audio_orig, ref_text, gen_text, exp_name, remove_silence, cross_fa
416
  # Use the new chunk_text function to split gen_text
417
  max_chars = int(0.333 * (len(ref_text.encode('utf-8')) / (audio.shape[-1] / sr) * (18 - audio.shape[-1] / sr )))
418
  print(f"text: {max_chars} ")
419
- gen_text_batches = chunk_text(gen_text, max_chars=100)
420
  print('ref_text', ref_text)
421
  for i, batch_text in enumerate(gen_text_batches):
422
  print(f'gen_text {i}', batch_text)
 
416
  # Use the new chunk_text function to split gen_text
417
  max_chars = int(0.333 * (len(ref_text.encode('utf-8')) / (audio.shape[-1] / sr) * (18 - audio.shape[-1] / sr )))
418
  print(f"text: {max_chars} ")
419
+ gen_text_batches = chunk_text(gen_text, max_chars=max_chars)
420
  print('ref_text', ref_text)
421
  for i, batch_text in enumerate(gen_text_batches):
422
  print(f'gen_text {i}', batch_text)