Spaces:
Sleeping
Sleeping
File size: 1,968 Bytes
75e5f3a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | ---
title: Problem Decoder
emoji: π§
colorFrom: violet
colorTo: indigo
sdk: docker
pinned: false
license: mit
short_description: Paste a transcription or upload a PDF β get problem analysis and brainstormed ideas powered by Claude.
---
# π§ Problem Decoder
An AI-powered agent that helps interns understand real-world problems and brainstorm creative solutions from meeting transcriptions or PDF documents.
## Features
- **Text input** β paste any transcription, meeting notes, or problem description
- **PDF upload** β upload a text-based PDF doc (specs, reports, research)
- **Problem analysis** β clearly articulates the core problem, stakeholders, context
- **Root cause analysis** β breaks down *why* the problem exists
- **Brainstorming** β generates 5β8 diverse, creative solution directions
- **Next steps** β gives the intern 3 concrete actions to take immediately
- **Streaming output** β response streams in real time
## Deploying to HuggingFace (Docker Space)
### 1. Create a new Space
Go to [huggingface.co/new-space](https://huggingface.co/new-space) and choose **Docker** as the SDK.
Name it: `problem-decoder`
### 2. Upload these files
```
problem-decoder/
βββ app.py
βββ requirements.txt
βββ Dockerfile
βββ README.md
```
### 3. Add your Anthropic API key as a secret
Go to **Settings β Repository secrets** and add:
```
Name: ANTHROPIC_API_KEY
Value: sk-ant-xxxxxxxxxxxxxxxx
```
### 4. Done β the Space builds and launches automatically
The build takes ~2 minutes on first deploy.
---
## Local development
```bash
# Build the image
docker build -t problem-decoder .
# Run (replace with your actual key)
docker run -p 7860:7860 -e ANTHROPIC_API_KEY=sk-ant-xxx problem-decoder
```
Then open http://localhost:7860
---
## Stack
| Layer | Technology |
|---|---|
| UI | Gradio 4 |
| LLM | Anthropic Claude Sonnet (streaming) |
| PDF parsing | pypdf |
| Container | Python 3.11 slim | |