Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
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)
|