banao-tech commited on
Commit
75e5f3a
Β·
verified Β·
1 Parent(s): 82a183f

Create Readme.md

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