jianchang512 / ChatTTS-ui

一个简单的本地网页界面,使用ChatTTS将文字合成为语音,同时支持对外提供API接口。A simple native web interface that uses ChatTTS to synthesize text into speech, along with support for external API interfaces.
https://pyvideotrans.com
Other
6.22k stars 729 forks source link

0.84升级到0.9后,app 无法成功启动,恢复旧版本后一切正常。 #108

Open mAoyf-dev opened 5 months ago

mAoyf-dev commented 5 months ago

出错信息: Traceback (most recent call last): File "app.py", line 5, in File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "torch__init.py", line 1382, in File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "torch\functional.py", line 7, in File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "torch\nn\init.py", line 1, in File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "torch\nn\modules\init__.py", line 2, in File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "torch\nn\modules\linear.py", line 7, in File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "torch\nn\functional.py", line 3703, in File "torch_jit_internal.py", line 880, in _overload File "torch_jit_internal.py", line 876, in _check_overload_body RuntimeError: Only pass statement or ... can be the body of overload declaration: def multi_margin_loss( input: Tensor, target: Tensor, <- Expecting pass or ... here!

Example usage of overload function: @torch.jit._overload def my_function(x: type0) -> type0: # decl 1 pass

@torch.jit._overload def my_function(x: type1) -> type1: # decl 2 pass

def my_function(x): # implementation if isinstance(x, type0): return x elif isinstance(x, type1): return x

[14980] Failed to execute script 'app' due to unhandled exception!

hulao6 commented 5 months ago

下0.85的 完整包

mAoyf-dev commented 5 months ago

好的,我试试,谢谢