From 78c385093185fea652188b46526e4dbee2b52caf Mon Sep 17 00:00:00 2001 From: lychang <632945494@qq.com> Date: Fri, 14 Nov 2025 01:53:39 +0800 Subject: [PATCH] update code --- app.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app.py b/app.py index 1e8dd6d..ec6601d 100644 --- a/app.py +++ b/app.py @@ -1,3 +1,4 @@ +from asyncio import timeout from datetime import datetime, timedelta from flask import Flask, render_template, jsonify, request import json @@ -1017,8 +1018,8 @@ if __name__ == '__main__': print("下载完成") print("启动聊天网页服务...") - print("访问地址: http://127.0.0.1:5000") - print("问答页面: http://127.0.0.1:5000/qa") - print("周报页面: http://127.0.0.1:5000/weekly_report") - print("日报页面: http://127.0.0.1:5000/daily_report") - app.run(debug=True, host='127.0.0.1', port=5000) + print("访问地址: http://0.0.0.0:5000") + print("问答页面: http://0.0.0.0:5000/qa") + print("周报页面: http://0.0.0.0:5000/weekly_report") + print("日报页面: http://0.0.0.0:5000/daily_report") + app.run(debug=True, host='0.0.0.0', port=5000,timeout=60) \ No newline at end of file