Firefly icon indicating copy to clipboard operation
Firefly copied to clipboard

执行单轮预测single_chat.py的脚本时,提示No module named 'component.utils'; 'component' is not a package

Open wzstang1994 opened this issue 1 year ago • 2 comments

在安装component之前提示没有安装,安装后提示component不是一个包 image

wzstang1994 avatar Sep 11 '23 05:09 wzstang1994

你要到cd script/chat,先到这个目录下运行python single_chat.py。

TimLuos avatar Sep 14 '23 08:09 TimLuos

作者在component文件夹下新增了utils .py文件,推理时加入: import sys sys.path.append("../") from component.utils import ModelUtils

Leawnn avatar Oct 17 '23 05:10 Leawnn