http://127.0.0.1:8000/health: GET endpoint confirming whether the API is running or not. http://127.0.0.1:8000/predict: POST endpoint that takes an input movie review and returns the sentiment of the review (positive or negative). http://127.0.0.1:8000/predict_proba: POST endpoint that takes an input movie review and returns the sentiment and the confidence score of the sentiment. i.e "positive", 0.95. http://127.0.0.1:8000/example: GET endpoint that returns a random review from the original training dataset.
- Use
git clone https://github.com/jlarson-dev/COMP-4450-Assignment-3.git - Run
make build - Run
make run - Use Postman to test the different endpoints.