Spaces:
Running
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
- The user provides:
- A Groq API key
- A YouTube or website URL
- The application:
- Validates inputs
- Loads content using the appropriate loader
- Sends extracted text to a Groq-hosted LLM via LangChain
- 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:
- Create a new Space and select Streamlit
- Connect this GitHub repository
- Ensure app.py and requirements.txt are present
- 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.