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.
The notebook SentimentClassification.ipynb provides a way to train a new model.
Before running the notebook, you need to download the data.
bash download_data.sh