Skip to content

Muhammadasim225/yt-summarizer-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

📽️ YouTube Video Summarizer

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.

banner Python Streamlit


✨ Features

  • 🔗 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

🛠️ Tech Stack

Layer Tools/Libs
🧠 AI Model Google Gemini (Generative AI)
🖥️ Frontend Streamlit
🔌 Backend Python
🌐 API youtube-transcript-api
🔐 Secrets dotenv / Streamlit Cloud Secrets

📷 Screenshots

Input Interface Output Summary
image

🚀 Live Demo

🌐 Click here to open the app on Streamlit Cloud


📦 Installation & Running Locally

1. Clone the Repository

git clone https://github.com/yourusername/yt-summarizer-app.git
cd yt-summarizer-app

2. Install Requirements

pip install -r requirements.txt

3. Set Up Environment Variables

Create a .env file in the root directory:

Youtube_Video_Summarizer_API=your_gemini_api_key_here

Or, if using Streamlit Cloud, set this as a secret key in the settings.

4. Run the App

streamlit run app.py

🔑 Required Files

.
├── app.py
├── requirements.txt
├── .env                # (Optional for local)
└── README.md

✅ Deployment (Streamlit Cloud)

  1. Push code to GitHub
  2. Go to https://streamlit.io/cloud
  3. Log in with GitHub and select your repo
  4. Set the environment variable:
    • Youtube_Video_Summarizer_API
  5. Click Deploy

✅ That's it — your app is live!


📚 Example Prompts (used internally)

Please summarize this video transcript to 250 words or less with highlighting all important key points.

⚠️ Disclaimer

  • 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.

📄 License

MIT License. Feel free to fork and enhance.


💬 Connect With Me


"Summarize smarter. Save time. Learn faster." – Built with 💡 by Muhammad Asim