Spaces:
Running
Running
metadata
title: Youtube Summary Ai
emoji: π
colorFrom: pink
colorTo: red
sdk: docker
sdk_version: 1.46.0
app_file: app.py
pinned: false
YouTube Summary AI
Transform YouTube videos into concise notes and summaries using fully local AI processing. This application runs entirely on your machine with no external API calls, ensuring complete privacy and security of your data.
Key Features
- π 100% Local Processing: All AI operations run on your machine
- No API keys required
- No data sent to external servers
- Complete privacy and security
- Use CPU or GPU to run the AI
- π― Offline Capable: Once models are downloaded, works without internet
- β‘ Fast Processing: Direct local inference without API latency
- π₯ Easy YouTube video URL input
- π Advanced audio extraction using yt-dlp
- π Local transcription using Whisper
- π€ Local AI summarization using LLaMA, Gemma or others LLM
- π Shareable summary links
- π» Clean and intuitive user interface
How It Works
- Download: Downloads YouTube video audio locally using yt-dlp
- Transcribe: Processes audio using local Whisper model
- Summarize: Generates summary using local LLaMA model
- All data stays on your machine!
Prerequisites
Before running the application, make sure you have the following installed:
- Python 3.8 or higher
- FFmpeg
- Ollama with LLaMA model
Installation
- Clone the repository
git clone https://github.com/Shivp1413/youtube-summary-ai.git
cd youtube-summary-ai
- Create a virtual environment (recommended)
python -m venv venv
source venv/bin/activate # On Windows, use: venv\Scripts\activate
- Install the required packages
pip install -r requirements.txt
- Install and run Ollama with LLaMA model
# Install Ollama from https://ollama.ai
ollama pull llama3.1
First-Time Setup
When you first run the application, it will:
- Download the Whisper base model (~150MB) for local transcription
- Use your local LLaMA model for summarization
- All subsequent runs will use these local models
Usage
- Start the Streamlit application:
streamlit run app.py
Open your web browser and navigate to
http://localhost:8501
Enter a YouTube URL and click "Generate Summary"
Share the summary using the generated link
Project Structure
youtube-summary-ai/
βββ app.py # Main Streamlit application
βββ summarizer.py # Video processing and local AI logic
βββ requirements.txt # Project dependencies
βββ assets/ # Project assets
β βββ demo.gif # Application demo
βββ README.md # Project documentation
Security Features
- β No API keys needed
- β No cloud services required
- β All processing happens locally
- β No data leaves your machine
- β Full control over your data
- β Works offline after initial setup
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.