Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/guillaumegenthial/api_ner

API for Tensorflow model in Flask
https://github.com/guillaumegenthial/api_ner

flask-api

Last synced: about 2 months ago
JSON representation

API for Tensorflow model in Flask

Awesome Lists containing this project

README

        

# Simple Flask API for a Tensorflow Model

See the [blog post](https://guillaumegenthial.github.io/serving.html) covering the main steps.

To be hosted on Heroku (files `Procfile`, `requirements.txt` and `runtime.txt`).

To run locally,

```
python app.py
```

The model is from [another repo](https://github.com/guillaumegenthial/sequence_tagging) on my github and is in the `model` directory. The flask app is defined in `app.py` which contains generic logic. The model-specific logic for the API is in the `serve.py` file.

An example of client is in the `client` directory.