You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
fhqfhvtx
changed the title
运行examples/api下的实例是,提示ModuleNotFoundError: No module named 'tools.audio'
运行examples/api下的实例时,提示ModuleNotFoundError: No module named 'tools.audio'
Nov 13, 2024
Traceback (most recent call last):
File "/root/ctts/examples/web/webui.py", line 13, in
from funcs import *
File "/root/ctts/examples/web/funcs.py", line 7, in
from tools.audio import float_to_int16, has_ffmpeg_installed, load_audio
ModuleNotFoundError: No module named 'tools.audio'
按照exaplmes/api/readme操作,操作步骤
1、clone git代码
2、安装依赖
进入Chattts目录,执行命令
pip install -r examples/api/requirements.txt
3、启动服务
fastapi dev examples/api/main.py --host 0.0.0.0 --port 8000
控制台报错:
ModuleNotFoundError: No module named 'tools.audio'
感觉错误原因是tools目录下的包并没有包含在ChatTTS的安装文件中,所有找不到。这个问题如何解决?
The text was updated successfully, but these errors were encountered: