A simple and powerful web app that summarizes YouTube videos using their transcripts. Built with Streamlit and powered by Google Gemini (Gemini 1.5 Flash), this tool extracts the transcript from a YouTube video and condenses it into a concise bullet-point summary within 250 words.
- ✅ Automatically extracts transcripts from YouTube videos
- 🤖 Uses Google's Gemini AI to generate a high-quality summary
- 📌 Summary limited to the most important points (≤250 words)
- 🖼️ Displays thumbnail preview of the video
- 🧠 Zero manual transcript copy-pasting
- Frontend/UI: Streamlit
- AI Model: Google Gemini (via
google.generativeai) - Transcript API: YouTube Transcript API
- Environment Management:
python-dotenv
- Clone the repo
git clone <repository-url>
cd <repository-folder>- Install dependencies
pip install -r requirements.txt- Set up environment variables
Create a .env file in the root directory and add your Google API key:
GOOGLE_API_KEY=your_google_gemini_api_key_here- Run the app
streamlit run app.py- Paste any YouTube video link (ensure it has captions available).
- Click on "Get Video Summary".
- Read the summary and enjoy the key insights!
- Python 3.7+
- Valid Google Gemini API key
- If you get an error saying
Could not retrieve transcript, the video might not have captions available or might be region-locked. - Ensure the API key is valid and you have access to Gemini models.
MIT License
