Please see the hugging face space that runs the application along with the code if you want to run this locally on your machine or deploy this following a client/server framework.
To use this code, you need to have Python 3.8 and install the following dependencies:
pip install -r requirements.txt
The notebook SentimentClassification.ipynb provides a way to train a new model.