A hands-on project from coursera course Deploy Models with TensorFlow Serving and Flask

Course Certificate
- Write a front view handle image uplaod
base.html
1 | {% extends "bootstrap/base.html" %} |
index.html
1 | {% extends "base.html" %} |
- Use docker to deployment tensorflow serving.
1 | docker run -p 8502:8501 --name=pets -v "/home/models/pets/:/models/pets/1" -e MODEL_NAME=pets tensorflow/serving |
This will copy the model from /home/models/pets/
which in your desktop to the path /models/pets/1
in docker
The port 8501
is defined by docker and you can change the 8502
to any port you can you used.
- Use
Flask
to process HTTP Requests and do model inference in docker.
1 | import os |
- Rendering results in template
1 | {% extends "base.html" %} |