Update README.md
Browse files
README.md
CHANGED
|
@@ -10,4 +10,65 @@ pinned: false
|
|
| 10 |
license: mit
|
| 11 |
---
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 10 |
license: mit
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# YouTube Sentiment Analysis
|
| 14 |
+
|
| 15 |
+
## Overview
|
| 16 |
+
YouTube Sentiment Analysis is a web application that allows users to input a YouTube video link and retrieve comments along with their sentiment analysis. The application employs a machine learning model to determine whether the comments are positive or negative, providing insights into the general opinion of the viewers.
|
| 17 |
+
|
| 18 |
+
## Features
|
| 19 |
+
- **Input Video Link**: Users can enter any valid YouTube video link.
|
| 20 |
+
- **Sentiment Analysis**: The application analyzes comments' sentiment using AI and provides a detailed summary.
|
| 21 |
+
- **Styled Comments Table**: Comments are displayed in a table, color-coded based on their sentiment.
|
| 22 |
+
- **User-Friendly Interface**: Built with Streamlit, providing an intuitive web interface.
|
| 23 |
+
|
| 24 |
+
## Technologies Used
|
| 25 |
+
- **Python**: The primary programming language for the application.
|
| 26 |
+
- **Streamlit**: For creating interactive web applications.
|
| 27 |
+
- **Pandas**: For data manipulation and analysis.
|
| 28 |
+
- **Machine Learning Model**: For predicting the sentiment of the comments.
|
| 29 |
+
- **YouTube API**: To fetch comments from the specified YouTube videos.
|
| 30 |
+
|
| 31 |
+
## Deploying
|
| 32 |
+
- Youtube Sentiment Analysis deployed website: https://alaindelong-youtube-sentiment-analysis.hf.space/
|
| 33 |
+
- Published Model: https://huggingface.co/spaces/AlainDeLong/youtube-sentiment-analysis/tree/main
|
| 34 |
+
- Due to the large size of the model, it cannot be included here; it will be available at the huggingface link mentioned above.
|
| 35 |
+
|
| 36 |
+
## Installation
|
| 37 |
+
To set up the project locally, follow these steps:
|
| 38 |
+
|
| 39 |
+
1. **Clone the repository**:
|
| 40 |
+
```bash
|
| 41 |
+
git clone https://github.com/AlainDeLong2k/demo-youtube-sentiment-analysis.git
|
| 42 |
+
cd demo-youtube-sentiment-analysis
|
| 43 |
+
|
| 44 |
+
2. **Create a virtual environment (optional but recommended)**:
|
| 45 |
+
```bash
|
| 46 |
+
python -m venv venv
|
| 47 |
+
source venv/bin/activate # On Windows use `venv\Scripts\activate`
|
| 48 |
+
|
| 49 |
+
3. **Install the required packages**:
|
| 50 |
+
```bash
|
| 51 |
+
pip install -r requirements.txt
|
| 52 |
+
|
| 53 |
+
4. **Run the application**:
|
| 54 |
+
```bash
|
| 55 |
+
streamlit run app.py
|
| 56 |
+
|
| 57 |
+
## Usage
|
| 58 |
+
1. Open a web browser and navigate to http://localhost:8501 (this is the default Streamlit port).
|
| 59 |
+
2. Enter a valid YouTube video link in the input field. Examples of valid links include:
|
| 60 |
+
- https://www.youtube.com/watch?v=b5k8bkWYyPQ
|
| 61 |
+
- https://youtu.be/b5k8bkWYyPQ?si=gABWBqKdjo_um6nk
|
| 62 |
+
3. Click on the `Analyze` button to retrieve and analyze comments for sentiment.
|
| 63 |
+
4. View the summary and comments in the application.
|
| 64 |
+
|
| 65 |
+
## Contributing
|
| 66 |
+
Contributions are welcome! If you would like to contribute to this project, please fork the repository and submit a pull request with your changes.
|
| 67 |
+
|
| 68 |
+
## License
|
| 69 |
+
This project is licensed under the MIT License. See the LICENSE file for details.
|
| 70 |
+
|
| 71 |
+
---
|
| 72 |
+
For any further questions or issues, feel free to open an issue in the repository.
|
| 73 |
+
|
| 74 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|