Summarize any text on your own machine. No API key. No cloud. No subscription.
This is a minimal demo. Your basic Python knowledge is all you need.
Runs a summarization model locally and prints a title and a short summary of the input text.
First run downloads the model from Hugging Face (~1GB). After that, it runs completely offline.
Tested on M1 MacBook Air 8GB. Works great.
pip install -r requirements.txt
python summarizer_en.pyThat's it.
Two steps happen under the hood:
- The model receives a plain English prompt: "Summarize the following text..."
- It generates a title and a short summary directly from the instruction
The model is Qwen/Qwen2.5-0.5B-Instruct via Hugging Face Transformers. Apache 2.0 licensed.
Simple, single-file AI demos that run locally on your Mac.
More at github.com/east-van-ai
Questions: east-van-ai@proton.me
MIT License. Copyright (c) 2025 Go Nakamaru.