IndexError: string index out of range
Traceback:
File "D:\EmotiVoice(2)\EmotiVoice-aiyy\EmotiVoice\env\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 534, in _run_script
exec(code, module.__dict__)
File "D:\EmotiVoice(2)\EmotiVoice-aiyy\EmotiVoice\demo_page.py", line 209, in <module>
new_line(0)
File "D:\EmotiVoice(2)\EmotiVoice-aiyy\EmotiVoice\demo_page.py", line 202, in new_line
text = g2p_cn(content)
File "D:\EmotiVoice(2)\EmotiVoice-aiyy\EmotiVoice\demo_page.py", line 67, in g2p_cn
return g2p(text)
File "D:\EmotiVoice(2)\EmotiVoice-aiyy\EmotiVoice\frontend.py", line 90, in g2p
py = [" ".join(split_py(_py)) for _py in py]
File "D:\EmotiVoice(2)\EmotiVoice-aiyy\EmotiVoice\frontend.py", line 90, in <listcomp>
py = [" ".join(split_py(_py)) for _py in py]
File "D:\EmotiVoice(2)\EmotiVoice-aiyy\EmotiVoice\frontend.py", line 26, in split_py
if py[-1] == 'r':