13 Star 117 Fork 56

livingbody / AutoCutout

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
app.py 905 Bytes
一键复制 编辑 原始数据 按行查看 历史
livingbody 提交于 2020-05-29 00:43 . 增加ocr服务
from flask import Flask, render_template
from flask_bootstrap import Bootstrap
from datetime import timedelta
app = Flask(__name__)
from koutu import *
app.register_blueprint(index_koutu)
from yanzhi import *
app.register_blueprint(index_yanzhi)
from meiyan import *
app.register_blueprint(index_meiyan)
from zhengjianzhao import *
app.register_blueprint(index_zhengjianzhao)
from ocr import *
app.register_blueprint(index_ocr)
Bootstrap(app)
# 设置静态文件缓存过期时间
app.send_file_max_age_default = timedelta(seconds=1)
# 首页
@app.route('/', methods=['POST', 'GET']) # 添加路由
def index():
return render_template('koutu.html')
@app.route('/error', methods=['POST', 'GET']) # 添加路由
def error():
return render_template('404.html')
if __name__ == '__main__':
app.run(host='0.0.0.0', port=80, debug=True)
Python
1
https://gitee.com/livingbody/AutoCutout.git
git@gitee.com:livingbody/AutoCutout.git
livingbody
AutoCutout
AutoCutout
master

搜索帮助