Skip to content

Template of flask application to serve deep learning or machine learning models

Notifications You must be signed in to change notification settings

2113vm/deep_flask

Repository files navigation

Description

Template of flask application to serve deep learning or machine learning models.

Flask application implemented via class based approach. This implementation solves the following problems:

  1. Models don't start when you import file where the application is. It could be useful when you want to test your web layer. In this approach, you can just import create_app function and mock your service.

  2. Single entry point of the application.

  3. The application is configurable

Run

export HOST="0.0.0.0"
export PORT=4567
gunicorn -w 2 -b $HOST:$PORT "web.app:create_app()"

Tests

pytest

How to make requests

Check src.utils.make_request() function

About

Template of flask application to serve deep learning or machine learning models

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages