File size: 491 Bytes
da04e19
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from flask import Flask
from flask_session import Session
from config import ApplicationConfig
from models import db
from routes.auth.index import auth
from routes.llm.index import llm

app = Flask(__name__)
app.config.from_object(ApplicationConfig)

server_session = Session(app)

db.init_app(app)
with app.app_context():
    db.create_all()

app.register_blueprint(auth, url_prefix='/auth')
app.register_blueprint(llm, url_prefix='/llm')

if __name__ == '__main__':
    app.run(debug=True)