152334H / tortoise-tts-fast

Fast TorToiSe inference (5x or your money back!)
GNU Affero General Public License v3.0
755 stars 176 forks source link

[streamlit gui]: AssertionError: Every "[" character must be paired with a "]" with no nesting. #93

Open BarfingLemurs opened 1 year ago

BarfingLemurs commented 1 year ago

I posted a very long bunch of text through the gui. After generating 800 or so, I get an AssertionError. Linux, 3090

AssertionError: Every "[" character must be paired with a "]" with no nesting.
Traceback:

File "/home/ubuntu/tortoise-tts-fast/venv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
    exec(code, module.__dict__)
File "/home/ubuntu/tortoise-tts-fast/scripts/app.py", line 278, in <module>
    main()
File "/home/ubuntu/tortoise-tts-fast/scripts/app.py", line 262, in main
    filepaths = infer_on_texts(
File "/home/ubuntu/tortoise-tts-fast/tortoise/inference.py", line 143, in infer_on_texts
    run_and_save_tts(
File "/home/ubuntu/tortoise-tts-fast/tortoise/inference.py", line 98, in run_and_save_tts
    gen, dbg = call_tts(text)
File "/home/ubuntu/tortoise-tts-fast/scripts/app.py", line 230, in call_tts
    return tts.tts_with_preset(
File "/home/ubuntu/tortoise-tts-fast/tortoise/api.py", line 534, in tts_with_preset
    return self.tts(text, **settings)
File "/home/ubuntu/tortoise-tts-fast/tortoise/api.py", line 800, in tts
    wav_candidates = [
File "/home/ubuntu/tortoise-tts-fast/tortoise/api.py", line 801, in <listcomp>
    potentially_redact(wav_candidate, text)
File "/home/ubuntu/tortoise-tts-fast/tortoise/api.py", line 797, in potentially_redact
    return self.aligner.redact(clip.squeeze(1), text).unsqueeze(1)
File "/home/ubuntu/tortoise-tts-fast/tortoise/utils/wav2vec_alignment.py", line 144, in redact
    "]" in spl