update code

This commit is contained in:
lychang
2025-11-14 01:53:39 +08:00
parent 0c4b7e3e46
commit 78c3850931

11
app.py
View File

@@ -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)