Skip to content

A Streamlit web app that summarizes YouTube video content using transcripts and Google’s Gemini Generative AI. Just paste a YouTube link to instantly get a concise summary without watching the full video.

Notifications You must be signed in to change notification settings

Sakshikanade31/YouTube-Transcript-Summarizer---Streamlit-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

YouTube-Transcript-Summarizer---Streamlit-App

A Streamlit-based web application that extracts and summarizes the transcript of a YouTube video using Google Generative AI (Gemini) API.

Purpose

This tool helps users quickly understand the contents of a YouTube video without watching the entire content. It is ideal for researchers, students, content creators, and busy professionals who want quick insights from educational or lengthy videos.

How It Works

  1. User pastes a YouTube video link into the app.
  2. The transcript is automatically fetched using the YouTube Transcript API.
  3. The transcript is then passed to Google's Gemini (Generative AI) API.
  4. Gemini generates a concise and informative summary (within 250 words).
  5. The summary is displayed on the page alongside the video thumbnail.

Conda Environment Setup

  1. Create environment: conda create -n yt-summarizer python=3.10 conda activate yt-summarizer
  2. Install dependencies: pip install -r requirements.txt

Requirements

Create a "requirements.txt" file with the following content: streamlit python-dotenv google-generativeai youtube-transcript-api

Environment Setup

  1. Create a .env file in the project root: touch .env

  2. Add your Google API key: GOOGLE_API_KEY=your_google_generative_ai_api_key_here

Running the App

streamlit run app.py

Features

  1. Summarizes YouTube video transcripts into bullet points or short paragraphs.
  2. Displays the video thumbnail.
  3. Uses Google's Gemini (Generative AI) for intelligent summarization.
  4. Lightweight and easy-to-use web interface with Streamlit.

Advantages

  1. Saves time by summarizing long videos.
  2. Requires no video watching—only the transcript.
  3. Efficient for content review, note-taking, and research.
  4. Easy to deploy on platforms like Streamlit Cloud or Hugging Face Spaces

Future Improvements

  1. Allow user to select summary length or format (e.g., bullets, paragraph, outline).
  2. Add multilingual transcript support.
  3. Option to download summary as PDF or TXT.
  4. Archive and manage past summaries.
  5. Display full transcript alongside summary.

About

A Streamlit web app that summarizes YouTube video content using transcripts and Google’s Gemini Generative AI. Just paste a YouTube link to instantly get a concise summary without watching the full video.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages