live demo: https://huggingface.co/spaces/GoodML/Comment-Feel
This project analyzes the sentiment of comments from a YouTube video using a pre-trained sentiment analysis model based on BERT and TensorFlow. It allows users to input a YouTube video URL, fetch comments related to that video, and analyze their sentiments (positive, negative, or neutral).
- Clone this repository to your local machine.
- Install the required libraries using
pip install -r requirements.txt
. - Replace the placeholder
DEVELOPER_KEY
with your actual YouTube Data API key in theDEVELOPER_KEY
variable inCommentFeel.py
. - Run the Streamlit app using
streamlit run CommentFeel.py
.
CommentFeel.py
: Main Streamlit application file.requirements.txt
: List of required Python libraries and versions.README.md
: Markdown file containing project information (this file).
- Run the Streamlit app as per the setup instructions.
- Input a valid YouTube video URL in the provided text box.
- Click on the "Extract Comments and Analyze" button to fetch comments and analyze their sentiment.
- View the sentiment analysis results in the form of pie and bar charts.
- Streamlit
- Transformers
- Torch
- Pandas
- Google API Python Client
- Plotly
- NumPy
- Fork the repository.
- Create a new branch (
git checkout -b feature/new-feature
). - Make your changes and commit them (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature/new-feature
). - Create a new Pull Request.
- Author: Aniket Panchal
- Email: AniketPanchal1257@gmail.com