python主程序如下:
base.html 文件内容如下:
index.html 文件内容如下:
cn-startup.xml文件内容如下
Greeting.aiml文件内容如下:
**最后运行结果是这样的 ** ,有界面,但不能人机对话,不会回复
后端报错是这样的:
需要怎么改正呀************
你得把后端报错的信息发下,这样才能判断
首先,你这个报错的意思是如下:
Internal Server Error
The server encountered an internal error and was unable to complete your request . Either the server is overloaded or there is an error in the application
内部服务器错误
服务器遇到内部错误,无法完成您的请求。服务器过载或应用程序出错。
看后台报错呀,你在哪儿运行flask,你就在哪看他的控制台输出的报错信息,这个属于后端错误,前端浏览器是看不出来的,你只贴出了flask后端代码,我们也不知道报错是啥
https://blog.csdn.net/m0_47943986/article/details/127922063
Flask常见错误与解决方法
https://blog.csdn.net/weixin_42218868/article/details/99207501