A professional Streamlit web application that uses Claude AI (Anthropic) to generate clean, structured summaries of any PDF document. Upload a PDF, click Summarize, and receive an organized breakdown in seconds.
- One-click PDF summarization powered by Claude AI
- Structured output — overview, key points, action items, and a bottom-line takeaway
- Download summaries as Markdown files for easy sharing
- Error handling — friendly messages for empty PDFs, API issues, and invalid files
- Clean, professional UI built with Streamlit
Screenshot placeholder — add a screenshot of the app here.
- User uploads a PDF file through the web interface.
- The app extracts text from the PDF using PyPDF2.
- The extracted text is sent to the Claude API with a structured prompt.
- Claude returns a formatted summary with an overview, key points, action items, and a bottom line.
- The summary is displayed in the app and can be downloaded as a
.mdfile.
git clone https://github.com/OriLevin55/ai-document-summarizer.git
cd ai-document-summarizerpython -m venv venv
source venv/bin/activate # macOS / Linux
venv\Scripts\activate # Windowspip install -r requirements.txtCopy the example environment file and add your key:
cp .env.example .envOpen .env and replace your_api_key_here with your actual Anthropic API key.
streamlit run app.pyThe app will open in your browser at http://localhost:8501.
- Go to console.anthropic.com.
- Sign up or log in to your account.
- Navigate to Settings > API Keys.
- Click Create Key, give it a name, and copy the key.
- Paste the key into your
.envfile.
Note: Anthropic offers free credits for new accounts. Check their pricing page for current details.
This tool is built for professionals who need to quickly digest long documents:
- Legal Documents — Summarize contracts, NDAs, and legal briefs to extract key obligations and deadlines.
- Business Reports — Get the highlights from quarterly reports, financial statements, and strategy decks.
- Research Papers — Break down academic papers into digestible overviews with key findings.
- HR & Compliance — Quickly review employee handbooks, policy updates, and compliance documents.
- Client Deliverables — Offer document summarization as a value-add service for consulting or freelance clients.
ai-document-summarizer/
├── app.py # Main Streamlit application
├── requirements.txt # Python dependencies
├── .env.example # Environment variable template
└── README.md # Project documentation
- Python 3.10+
- Streamlit — Web UI framework
- Anthropic Python SDK — Claude API client
- PyPDF2 — PDF text extraction
- python-dotenv — Environment variable management
MIT
Built by Ori Levin
