2022-07-11 10:14:01 +00:00
|
|
|
from ast import Pass
|
2022-02-08 11:26:20 +00:00
|
|
|
from app import db
|
|
|
|
from app.decorators import permission_required
|
|
|
|
from app.models import Permission, Role, User
|
|
|
|
from app.settings import tasks as settings_tasks
|
2022-02-03 11:39:16 +00:00
|
|
|
from flask import flash, redirect, render_template, url_for
|
|
|
|
from flask_login import login_required
|
|
|
|
from . import bp
|
|
|
|
|
|
|
|
|
|
|
|
@bp.before_request
|
|
|
|
@login_required
|
|
|
|
@permission_required(Permission.CONTRIBUTE)
|
|
|
|
def before_request():
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2022-07-11 10:14:01 +00:00
|
|
|
@bp.route('')
|
2022-02-03 11:39:16 +00:00
|
|
|
def index():
|
|
|
|
pass
|
2022-07-11 10:14:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
@bp.route('/tesseract_ocr_model', methods=['GET', 'POST'])
|
|
|
|
def tesseract_ocr_model():
|
|
|
|
pass
|