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)
def app(): app = create_app(config_object=TestingConfig) with app.app_context(): yield app