A powerful and elegant Streamlit-based web app that automatically fetches a YouTube video's transcript and generates a concise, intelligent summary using Google's Gemini AI model.
- 🔗 Paste any YouTube video link
- 📜 Auto-fetches the transcript using
youtube-transcript-api - 🧠 Summarizes the content using Google Gemini (Generative AI)
- 📄 Clean and modern UI following design best practices
- 🖼️ Displays video thumbnail for visual context
- ✅ Error handling for invalid links
- 🎯 Summary limited to 250 words and focuses on key points
- 📱 Fully responsive design with beautiful typography
| Layer | Tools/Libs |
|---|---|
| 🧠 AI Model | Google Gemini (Generative AI) |
| 🖥️ Frontend | Streamlit |
| 🔌 Backend | Python |
| 🌐 API | youtube-transcript-api |
| 🔐 Secrets | dotenv / Streamlit Cloud Secrets |
| Input Interface | Output Summary |
|---|---|
![]() |
![]() |
🌐 Click here to open the app on Streamlit Cloud
git clone https://github.com/yourusername/yt-summarizer-app.git
cd yt-summarizer-apppip install -r requirements.txtCreate a .env file in the root directory:
Youtube_Video_Summarizer_API=your_gemini_api_key_hereOr, if using Streamlit Cloud, set this as a secret key in the settings.
streamlit run app.py.
├── app.py
├── requirements.txt
├── .env # (Optional for local)
└── README.md- Push code to GitHub
- Go to https://streamlit.io/cloud
- Log in with GitHub and select your repo
- Set the environment variable:
Youtube_Video_Summarizer_API
- Click Deploy
✅ That's it — your app is live!
Please summarize this video transcript to 250 words or less with highlighting all important key points.
- This project is built only for educational and informational purposes.
- All content, transcripts, and video rights belong to their original creators.
- The app uses public transcript data via the YouTube API where available.
MIT License. Feel free to fork and enhance.
- GitHub: Github Profile link
- Portfolio: Personal Portfolio
- Email: muhammadasim4927@gmail.com
"Summarize smarter. Save time. Learn faster." – Built with 💡 by Muhammad Asim

