conda create -n rasa34 python=3.8
conda activate rasa34
pip install jieba
pip install rasa -i https://pypi.tuna.tsinghua.edu.cn/simple
测试:
rasa --version
rasa2.7安装教程(win10)_Wonder-King的博客
运行rasa
conda activate rasa
rasa run --m 20230223-171505.tar.gz -p 9001 --enable-api --log-file out.log
参数说明:
m:选择模型
p:选择端口
i:选择地址
enable-api:开启api服务
log-file:输出日志
测试
http://localhost:9001/webhooks/rest/webhook POST请求
{
"sender": "123",
"message": "咨询"
}