Run the following command to install the following dependencies first :
pip install flask
For testing the API use the following command :
For curl : curl -X POST http://127.0.0.1:5000/predict -H "Content-Type: application/json" -d '{"text": "Your news article text here"}'