A professional and user-friendly web application built with Streamlit that generates concise summaries of YouTube videos using Google's Gemini AI model.
Live demo: https://youtubevideosummarizergemini.streamlit.app/
- Modular Codebase: The application is structured with a clear separation of concerns, making it easy to maintain and extend.
- AI-Powered Summarization: Utilizes the Google Gemini API to generate comprehensive summaries from video transcripts.
- Enhanced UI: A polished and professional user interface with custom styling.
- Error Handling: Robust error handling to provide clear feedback to the user.
- Easy to Use: Simply paste a YouTube URL and get a summary in seconds.
- Language: Python 3
- Web Framework: Streamlit
- Video Information:
yt-dlp - Transcript Extraction:
youtube-transcript-api - AI Model: Google Gemini API (
google-generativeai)
-
Clone the repository:
git clone https://github.com/Dmukherjeetextiles/YoutubeVideoSummarizer.git cd YoutubeVideoSummarizer -
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install the dependencies from
requirements.txt:pip install -r requirements.txt
-
Get a Google Gemini API Key:
- You'll need an API key from Google AI Studio.
- Visit Google AI Studio to create your key.
-
Run the Streamlit application from your terminal:
streamlit run yt.py
-
Using the App:
- The application will open in your web browser.
- Enter your Google Gemini API Key in the sidebar.
- Paste the URL of the YouTube video you want to summarize.
- Click "Generate Summary" and wait for the magic to happen!
This project is licensed under the MIT License - see the LICENSE file for details.