【发布时间】:2020-04-01 20:24:43
【问题描述】:
嘿,我是 Rasa 的新手,所以当我尝试使用命令运行聊天机器人时
rasa run --credentials credentials.yml --cors null
聊天机器人仅在我使用其路径打开 HTML 文件时运行。
file:///C:/Users/ansel/PycharmProjects/rasabot/index.html
因此我想知道是否有任何方法可以在我的本地主机上运行 HTML 文件? 当我在浏览器中输入 http://localhost:5005 时,它给了我: 来自 Rasa 的你好:1.8.1 而不是实际的网页
同样,当我重新运行 rasa 聊天机器人时,似乎并没有清除我的旧对话.....有什么办法可以改变这一点吗??
我的聊天机器人似乎也没有加载任何图像。
这是 HTML 代码:
<!DOCTYPE html>
<html>
<head>
<title>Rasa Chatbot</title>
</head>
<body>
<div id="webchat"/>
<script src="https://storage.googleapis.com/mrbot-cdn/webchat-latest.js"></script>
// Or you can replace latest with a specific version
<script>
WebChat.default.init({
selector: "#webchat",
initPayload: "/hello",
customData: {"language": "en"}, // arbitrary custom data. Stay minimal as this will be added to the socket
socketUrl: "http://localhost:5005",
socketPath: "/socket.io/",
title: "Chatbot",
</script>
</body>
</html>
任何帮助将不胜感激,我提前感谢您。
【问题讨论】:
-
网络聊天标签适用于 Bot Framework
标签: python socket.io rasa-core rasa