Example #1
0
from ml_api.api.app import create_app
from ml_api.api.config import DevelopmentConfig, ProductionConfig

application = create_app(config_object=ProductionConfig)

if __name__ == "__main__":
    application.run(debug=True)
Example #2
0
def app():
    app = create_app(config_object=TestingConfig)

    with app.app_context():
        yield app