This is PyTorch based RoBERTa pre-trained model trained on tweeteval dataset which contains ~12,000 tweets for the sentiment classification tasks with three classes being positive, negative, neutral sentiments. TweetEval Dataset consists of seven heterogenous tasks in twitter, all framed as multi-class tweet classification.One of the used for this demo is Sentiment Analysis. The model can be downloaded from hugging face: https://huggingface.co/cardiffnlp/twitter-roberta-base-sentiment-latest?text=Covid+cases+are+increasing+fast%21
In this Interactive demo, the user can input text and submit to get the corresponding sentiment class probabilities. This web app is developed using Gradio Python library.
$ ssh -i <ssh.key> ubuntu@<public-ip>
$ bash start-docker-cloud-hackathon.sh
Starting sentiment-analysis-pt-aio-demo container
Docker container ID:173e054cd5a9
# ./start-webapp.sh
Getting Webapp URL ...........................
Webapp URL: http://<public-ip>:7860/
Install firewalld package $ sudo apt purge ufw -y
$ sudo apt install firewalld -y
$ sudo firewall-cmd --permanent --zone=public --add-port=<7860-7864>/tcp
$ sudo firewall-cmd --reload
$ sudo firewall-cmd --zone=public --list-ports
Copy the URL and paste on the browser