simple category classifier using flask
How to run:
- run all cell in text_classifier.ipynb
- execute command
python app.py
as application server - execute this command in new command prompt for predict category of the text
curl -X POST -d "{\"text\": \"this is a news news news\"}" http://localhost:5000/predict -H "Content-Type:application/json