This project is a Sentiment Analysis App built using Streamlit and the transformers
library from Hugging Face. The app allows users to input text and analyze its sentiment using a pre-trained BERT model.
The Sentiment Analysis App performs the following tasks:
- Takes user input as text.
- Uses a pre-trained BERT model to analyze the sentiment of the input text.
- Displays the sentiment score.
- Pre-trained BERT Model: Utilizes the
nlptown/bert-base-multilingual-uncased-sentiment
model from Hugging Face for sentiment analysis. - Visual Feedback: Sentiment results are displayed with emojis, descriptive text.
- Python 3.6 or higher
- Streamlit
transformers
librarytorch
library
-
Clone the repository:
git clone https://github.com/yourusername/sentiment-analysis-app.git cd sentiment-analysis-app
-
Install the required packages:
pip install -r requirements.txt
To run the app locally, execute the following command:
streamlit run app.py