结果都不打印,直接就finished ,还没报错
xzkzdx opened this issue · 4 comments
from collections import deque
import paddlehub as hub
model = hub.Module(name='plato-mini', version='1.0.0')
model._interactive_mode = True
model.max_turn = 10
model.context = deque(maxlen=model.max_turn)
result = model.predict("hello")
print(result)
结果都不打印,直接就finished ,还没报错
[2021-06-23 18:28:37,384] [ INFO] - Already cached C:\Users\pc.paddlenlp\models\plato-mini\plato-mini.pdparams
[2021-06-23 18:28:48,339] [ INFO] - Found C:\Users\pc.paddlenlp\models\plato-mini\plato-mini-vocab.txt
[2021-06-23 18:28:48,340] [ INFO] - Found C:\Users\pc.paddlenlp\models\plato-mini\plato-mini-spm.model
Building prefix dict from the default dictionary ...
Loading model from cache C:\Users\pc\AppData\Local\Temp\jieba.cache
Loading model cost 0.696 seconds.
Prefix dict has been built successfully.
windows系统的模型使用问题已修复,重新安装plato-mini可解决。