ArchitJ6 / youtube-llm-summarizer

AI-powered YouTube video summarizer built with Streamlit. This project extracts transcripts from YouTube using YouTubeTranscriptAPI or Whisper, then summarizes them using Groq's LLM. Dockerized for seamless deployment.

Repository from Github https://github.comArchitJ6/youtube-llm-summarizerRepository from Github https://github.comArchitJ6/youtube-llm-summarizer

πŸ“Ί YouTube LLM Summarizer

πŸš€ AI-powered YouTube Video Summarization with Streamlit

This project extracts transcripts from YouTube videos using YouTubeTranscriptAPI or Whisper, then summarizes them using Groq's LLM. The app is built with Streamlit and runs in a Dockerized environment for easy deployment.


πŸš€ Features

βœ… Extracts YouTube transcripts automatically
βœ… Uses Whisper for speech-to-text if transcripts are unavailable
βœ… Summarizes content using Groq LLM
βœ… Provides a simple Streamlit UI for easy interaction
βœ… Dockerized for seamless deployment


πŸ“‚ Project Structure

πŸ“ youtube-llm-summarizer  
│── πŸ“„ app.py               # Streamlit UI for summarization  
│── πŸ“„ summarizer.py        # Core logic for transcript extraction & summarization  
│── πŸ“„ Dockerfile           # Docker configuration  
│── πŸ“„ docker-compose.yml   # Docker Compose setup  
│── πŸ“„ .env                 # Environment variables  
│── πŸ“„ requirements.txt     # Python dependencies  
│── πŸ“ temp/                # Temporary storage for audio files

πŸ› οΈ Installation & Setup

1️⃣ Clone the Repository

git clone https://github.com/ArchitJ6/youtube-llm-summarizer.git
cd youtube-llm-summarizer

2️⃣ Set Up Environment Variables

Create a .env file in the root directory and add your API keys:

GROQ_API_KEY=your_groq_api_key

3️⃣ Run with Docker Compose

docker-compose up --build

This will:

  • Pull the necessary dependencies
  • Set up the Streamlit app in a container
  • Run the app on http://localhost:8501

🎬 How to Use

  1. Open http://localhost:8501
  2. Enter a YouTube video URL
  3. Click "Summarize"
  4. View the generated summary

πŸ“¦ Running Without Docker

If you prefer to run locally:

pip install -r requirements.txt
streamlit run app.py

πŸ› οΈ Built With

  • Python 🐍
  • Streamlit πŸ“Š
  • YouTubeTranscriptAPI πŸŽ₯
  • Whisper πŸŽ™οΈ
  • Groq LLM 🧠
  • Docker & Docker Compose 🐳

πŸ“ License

This project is licensed under the MIT License.

About

AI-powered YouTube video summarizer built with Streamlit. This project extracts transcripts from YouTube using YouTubeTranscriptAPI or Whisper, then summarizes them using Groq's LLM. Dockerized for seamless deployment.

License:MIT License


Languages

Language:Python 86.0%Language:Dockerfile 14.0%