Skip to content

Tutorial on how to build a Universal Ink Model based micro-service in Python using FastAPI.

License

Notifications You must be signed in to change notification settings

doctorink/uim-fastapi-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tutorial: How to build an ML backend for Ink

Purpose

This goal of this tutorial is to describe, how to build a fast prototype for a REST API to serve an experimental deep learning system for digital ink utilizing Wacom's Universal Ink Model.

Train a model

In order to train a machine learning model, you can pick your favorite framework:

The project model-trainer contains a sample the extract sensor data.

The projects contains a folder models where you should store the trained models.

FastAPI

FastAPI is an easy-to-use framework to build Python REST APIs (micro-services).

Deployment

The sample service is packaged as a Docker container, thus it can be deployed in several cloud infrastructures, for instance:

  • Amazon's AWS
  • Microsoft Azure
  • Digital Ocean
  • Heroku

Heroku

Exemplary, we will use Heroku deploy.

1. Step: Create a Heroku account and configure your backend

2. Step: Log into your container registry.

$ heroku container login

3. Step: Build docker image and push it to Heroku registry.

$ heroku container:push web --app <APP-NAME>

3. Step: Build docker image and push it to Heroku registry.

$ heroku container:release web --app <APP-NAME>

Access logging: Build docker image and push it to Heroku registry.

$ heroku logs --tail --app <APP-NAME>

Universal Ink Library

You can find more samples on how to use Wacom's Universal Ink Library here

Documentation

For further details on using the SDK see WILL SDK for ink documentation

The API Reference is available directly in the downloaded SDK.

Support

If you experience issues with the technology components, please see related FAQs

For further support file a ticket in our Developer Support Portal described here: Request Support

Developer Community

Join our developer community:

License

This sample code is licensed under the MIT License

About

Tutorial on how to build a Universal Ink Model based micro-service in Python using FastAPI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published