(相关网站:[tensorfly中文社区]http://tensorfly.cn/ qq交流群 472113439)
This is a demo to show how to run a well-trained tensorflow-model as a web service.
- install tensorflow. check here
- install flask (a light-weighted web framework ). check here or simply install it by
pip
:
pip install Flask
- install PIL (a python Image Library). check here or install it by:
pip install PIL
cd /path/to/the/repository
python app.py
and you can check the demo by opening the page http://localhost:5000 (chrome recommended)