SnapSummaryAI / README.md
Vikrant Honbute
Update README.md
4975911 unverified
metadata
title: SnapSummaryAI
emoji: πŸš€
colorFrom: blue
colorTo: purple
sdk: docker
app_file: app.py
pinned: false

SnapSummaryAI – YouTube & Web Summarizer πŸš€

SnapSummaryAI is a lightweight Generative AI-powered summarization app that extracts and summarizes content from YouTube videos and web URLs into concise, readable summaries using Groq LLMs and LangChain.
Built with Streamlit, it is designed for fast inference, clean UX, and easy deployment on Hugging Face Spaces.


πŸš€ Live Demo

Try the app here:
πŸ‘‰ https://huggingface.co/spaces/viki77/SnapSummaryAI


✨ Features

  • URL-based summarization
    • YouTube videos (non-private, non-shorts)
    • Articles and general web pages
  • Fast inference using Groq-hosted LLMs
  • Context-aware summaries (up to 300 words)
  • Clean Streamlit user interface
  • Secure API key handling (user-provided, not hardcoded)
  • Hugging Face Spaces compatible

πŸ› οΈ Tech Stack

  • Python
  • Streamlit – UI framework
  • LangChain – LLM orchestration
  • Groq LLMs – High-performance inference
  • YoutubeLoader & UnstructuredURLLoader – Content ingestion

πŸ“‚ Project Structure

SnapSummaryAI-GenAI β”‚
β”œβ”€β”€ app.py Main Streamlit application
β”œβ”€β”€ requirements.txt Project dependencies
β”œβ”€β”€ README.md Project documentation
└── .gitignore Ignored files (env, venv, cache)


πŸš€ How It Works

  1. The user provides:
    • A Groq API key
    • A YouTube or website URL
  2. The application:
    • Validates inputs
    • Loads content using the appropriate loader
    • Sends extracted text to a Groq-hosted LLM via LangChain
  3. A concise AI-generated summary is displayed in the UI

▢️ Running Locally

Clone the repository
git clone https://github.com/vikrant-honbute/SnapSummaryAI-GenAI.git
cd SnapSummaryAI-GenAI

Create a virtual environment (recommended)
python -m venv venv
source venv/bin/activate (macOS/Linux)
venv\Scripts\activate (Windows)

Install dependencies
pip install -r requirements.txt

Run the application
streamlit run app.py


πŸ”‘ API Key Handling

  • The Groq API key is entered via the Streamlit sidebar
  • The key is not stored, not logged, and not committed
  • Safe for local use, public demos, and Hugging Face Spaces

🌐 Deployment (Hugging Face Spaces)

SnapSummaryAI is fully compatible with Hugging Face Spaces.

Deployment steps:

  1. Create a new Space and select Streamlit
  2. Connect this GitHub repository
  3. Ensure app.py and requirements.txt are present
  4. Launch the Space

Users can securely provide their own Groq API key from the UI.


⚠️ Limitations

  • Does not support:
    • Private or restricted YouTube videos
    • Extremely large web pages without preprocessing
  • Summary length is currently fixed

πŸ“Œ Future Improvements

  • Streaming summaries (token-by-token)
  • Chapter-wise summaries for long videos
  • Multi-language summarization
  • Chat-style conversational memory
  • UI theming and dark mode

πŸ‘¨β€πŸ’» Author

Vikrant Honbute
AI / ML Engineer | GenAI & LLM Applications
GitHub: https://github.com/vikrant-honbute


πŸ“œ License

This project is open-source and intended for educational and demonstration purposes.