flask_ml_API
Flask API test
Test POC for end to end Machine Learning API development
- Train model,
- Pickle,
- Publish as endpoint API
To start, run python service.py
and then go to http://127.0.0.1:5000/?text=Windows%20is%20a%20operating%20system
links
building-a-text-classifier-using-python-and-docker
venv
python3 -m venv ~/.virtualenvs/flask
source ~/.virtualenvs/flask/bin/activate
pip install flask
pip install sklearn
flask run
& then go to http://127.0.0.1:5000/?text=Windows%20is%20a%20operating%20system
docker
docker build -t test/text-classifier-service .
docker run -it --rm -p 5000:5000 test/text-classifier-service
& then go to http://127.0.0.1:5000/?text=Windows%20is%20a%20operating%20system