Sentiment analysis tool that processes YouTube comments and provides a sentiment score and summary for each video.
-
Clone the repository:
git clone https://github.com/ cd machine-learning-resume-project -
Create a virtual environment and activate it:
python3 -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Set up environment variables:
- Create a
.envfile in the root directory and add your YouTube API key:
YOUTUBE_API_KEY=your_youtube_api_key
- Create a
-
Run the Flask API:
python app.py
-
Open the frontend:
- Navigate to
http://localhost:5000in your web browser. - Enter the URL of a YouTube video and click "Analyze".
- Navigate to
app.py: The main Flask application.model.py: Code for loading and using the TensorFlow model.static/: Static files for the frontend.templates/: HTML templates for the frontend.requirements.txt: List of required Python packages.