<<<<<<< HEAD
A simple sentiment analysis tool that uses Hugging Face's transformers library to analyze the sentiment of text input. The tool provides both a command-line interface and a Streamlit web interface.
- Sentiment analysis using DistilBERT model
- Web interface built with Streamlit
- Real-time sentiment analysis with confidence scores
- Color-coded results (green for positive, red for negative)
- Clone this repository
- Install the required dependencies:
pip install -r requirements.txt
To run the Streamlit interface:
streamlit run sentiment_analyzer.py
The web interface will open in your default browser. Enter any text in the input area and click "Analyze Sentiment" to see the results.
- Open the application using the command above
- Enter text such as:
- "I love this amazing product!" (positive)
- "This is terrible, I hate it." (negative)
- "The weather is okay today." (neutral)
- Click "Analyze Sentiment" to see the results
- Uses the
distilbert-base-uncased-finetuned-sst-2-english
model from Hugging Face - Built with Python 3.x
- Dependencies: transformers, torch, streamlit =======
A real-time sentiment analysis web app using DistilBERT and Streamlit that analyzes text sentiment with confidence scores and visual feedback.
origin/main