Skip to content

请问大神这个怎么解决?AttributeError:模块“torch”没有属性“Tensor” #132

@cheehingchang-create

Description

@cheehingchang-create

AttributeError:模块“torch”没有属性“Tensor”
File "C:\Users\张志兴\Desktop\产品图片\MoneyPrinterPlus-windows\venv\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 600, in _run_script
exec(code, module.dict)
File "C:\Users\张志兴\Desktop\产品图片\MoneyPrinterPlus-windows\pages\01_auto_video.py", line 28, in
from main import main_generate_video_content, main_generate_ai_video, main_generate_video_dubbing,
File "C:\Users\张志兴\Desktop\产品图片\MoneyPrinterPlus-windows\main.py", line 31, in
from services.audio.chattts_service import ChatTTSAudioService
File "C:\Users\张志兴\Desktop\产品图片\MoneyPrinterPlus-windows\services\audio\chattts_service.py", line 55, in
def encode_spk_emb(spk_emb: torch.Tensor) -> str:
^^^^^^^^^^^^
请问下大神这是哪里出问题了,怎么解决?感谢!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions