- Introduction of dynamic Retrievers & Specialists
- Introduction of dynamic Processors - Introduction of caching system - Introduction of a better template manager - Adaptation of ModelVariables to support dynamic Processors / Retrievers / Specialists - Start adaptation of chat client
This commit is contained in:
@@ -4,10 +4,12 @@ from flask import Flask
|
||||
import os
|
||||
|
||||
from common.utils.celery_utils import make_celery, init_celery
|
||||
from common.extensions import db, minio_client
|
||||
from config.logging_config import LOGGING
|
||||
from common.extensions import db, minio_client, template_manager, cache_manager
|
||||
import config.logging_config as logging_config
|
||||
from config.config import get_config
|
||||
|
||||
from . import processors
|
||||
|
||||
|
||||
def create_app(config_file=None):
|
||||
app = Flask(__name__)
|
||||
@@ -22,8 +24,7 @@ def create_app(config_file=None):
|
||||
case _:
|
||||
app.config.from_object(get_config('dev'))
|
||||
|
||||
logging.config.dictConfig(LOGGING)
|
||||
app.embed_tuning_logger = logging.getLogger('embed_tuning')
|
||||
logging.config.dictConfig(logging_config.LOGGING)
|
||||
|
||||
register_extensions(app)
|
||||
|
||||
@@ -41,6 +42,8 @@ def create_app(config_file=None):
|
||||
def register_extensions(app):
|
||||
db.init_app(app)
|
||||
minio_client.init_app(app)
|
||||
cache_manager.init_app(app)
|
||||
template_manager.init_app(app)
|
||||
|
||||
|
||||
app, celery = create_app()
|
||||
|
||||
Reference in New Issue
Block a user