Spaces:
Running
Running
|
Download README.md from BonusLockSMith/text-summarizer: direct link, hf CLI and curl.
- Browser
- Download file 1.71 kB
-
https://huggingface.co/spaces/BonusLockSMith/text-summarizer/resolve/main/README.md
- Command line
-
hf download hf://spaces/BonusLockSMith/text-summarizer/README.md
-
curl -L -o README.md https://huggingface.co/spaces/BonusLockSMith/text-summarizer/resolve/main/README.md
1.71 kB
metadata
title: Text Summarizer
emoji: π
colorFrom: indigo
colorTo: blue
sdk: docker
app_port: 7860
pinned: false
Text Summarizer π
Paste an article, email, or notes β or drop in a URL β and get a faithful TL;DR plus key points, streamed live. Pick the depth: Brief, Standard, or Detailed.
Project #2 of my "30 AI Projects in 15 Days" build-in-public challenge.
What it does
- Summarize text or a link β paste raw text, or give it a URL and it fetches + extracts the article for you.
- Three depths β a 2β3 sentence TL;DR, a paragraph + key bullets, or a detailed breakdown that preserves names/numbers/dates.
- Faithful β instructed to never add facts or opinions not in the source.
- Live streaming output with a one-click Copy.
What it demonstrates
- Prompt engineering β length/format control via a parameterized system prompt.
- Retrieval from the web β server-side fetch + HTMLβtext extraction (BeautifulSoup).
- Streaming UX (Server-Sent Events) and a clean, responsive single-file UI.
- Backend-agnostic β Claude API in the cloud, or a local Ollama model. Same code.
Run locally
pip install -r requirements.txt
export ANTHROPIC_API_KEY=sk-ant-... # or set OLLAMA_URL / OLLAMA_MODEL
python app.py # http://127.0.0.1:8500
Deploy (always-on)
Ships with a Dockerfile β works on Hugging Face Spaces, Render, Railway, or Fly.io.
Set ANTHROPIC_API_KEY (+ optional ANTHROPIC_MODEL=claude-haiku-4-5) as a secret.
Built by Robert Lucyk Β· GritAI Solutions Β· part of the 30-in-15 challenge.
