Code Monkey home page Code Monkey logo

containerized_ml's Introduction

containerized_ml

Template to containerize a Tensorflow Machine Learning algorithm and serve its predictions as an API using Docker and Flask.

Quickstart

  • git clone https://github.com/waddafunk/containerized_ml.git.
  • cd containerized_ml
  • docker compose up
  • curl http://localhost:8000/cache_check will print how many times the url has been visited
  • curl http://localhost:8000/tf_check will print available resources

Add the services you want to add editing app/server.py. The bind mount (line 7-8 of docker-compose.yml) ensures that changes in the code are automatically loaded in the Flask server without the need to tear all down and load it back up. Just edit, save, and changes will be reflected in the app. This behaviour is for development only and must be removed before production.

Additional python libraries must be installed by editing app/requirements.txt.

Could fail if no NVIDIA GPUs are present on the machine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.