- Please set up google-home-notifier-interface
- Set up
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/<google cloud platform service account key>
pip install --upgrade flask
pip install --upgrade google-cloud-language
- Execute this program
python3 sentiment_analysis.py
- Send an HTTP POST request
curl -v -XPOST -H "Content-Type: application/json" -d '{"data": "<Text to be analyzed>"}' http://localhost:5000/