使用破折号python的聊天机器人

时间:2019-10-31 05:12:29

标签: python plotly-dash

我想使用破折号创建聊天机器人。是否可以使用破折号创建聊天机器人? Chatbot逻辑已完成,但我想在Web浏览器中实现chatbot外观。在html中,我们有一个容器来创建chatbot的对话流。就像在html中一样,我必须从文本框获取用户输入到容器的主体以及容器主体中的系统响应。

当前输出:

enter image description here

预期输出:

是否可以在破折号中创建如下图所示的外观?

enter image description here

建议我一些想法。

1 个答案:

答案 0 :(得分:0)

选项1:(使用破折号)

请参阅此link,该图以虚线显示了所需的chatbot演示实现。该演示应用程序根据需要显示用户对话的历史记录。

选项2:(使用Flask)

当您选择本机Flask实现而不是破折号时,您可以获得具有所需功能的聊天机器人的许多示例实现。请参阅以下链接:

https://dev.to/sahilrajput/build-a-chatbot-using-flask-in-5-minutes-574i

https://medium.com/datadriveninvestor/building-a-machine-learning-chat-bot-with-flask-framework-and-python-2c24b2def49b

相关问题