mirror of
https://github.com/Doctorado-ML/benchmark.git
synced 2025-08-17 08:25:53 +00:00
21 lines
534 B
Python
Executable File
21 lines
534 B
Python
Executable File
#!/usr/bin/env python
|
|
from benchmark.Arguments import EnvData
|
|
from flask import Flask
|
|
from .main import main, OUTPUT
|
|
|
|
FRAMEWORK = "framework"
|
|
FRAMEWORKS = "frameworks"
|
|
TEST = "test"
|
|
|
|
|
|
def create_app(output="local"):
|
|
app = Flask(__name__)
|
|
config = EnvData().load()
|
|
app.register_blueprint(main)
|
|
app.config[FRAMEWORK] = config[FRAMEWORK]
|
|
app.config[FRAMEWORKS] = ["bootstrap", "bulma"]
|
|
app.config[OUTPUT] = output
|
|
app.jinja_env.auto_reload = True
|
|
app.config["TEMPLATES_AUTO_RELOAD"] = True
|
|
return app
|