Skip to content

Commit d5cfbcc

Browse files
Kimi K2.5 Paper to Page Workflow Example (#417)
Signed-off-by: Chris Alexiuk <c.s.alexiuk@gmail.com>
1 parent 0e944a9 commit d5cfbcc

File tree

5 files changed

+1010
-0
lines changed

5 files changed

+1010
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# NVIDIA AI Endpoints API Key
2+
# Get your key from: https://build.nvidia.com/
3+
NVIDIA_API_KEY=nvapi-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# ML Paper Webpage Generator
2+
3+
Transform ML research papers into HTML summaries with CSS animations using **Kimi K2.5** via NVIDIA AI endpoints.
4+
5+
**Input:** PDF file of an ML paper
6+
**Output:** Single HTML file with animated diagram
7+
8+
## Model
9+
10+
This project uses [Kimi K2.5](https://build.nvidia.com/moonshotai/kimi-k2.5) - a vision-language model from Moonshot AI, available through NVIDIA AI endpoints.
11+
12+
## How It Works
13+
14+
```
15+
extract_pdf → analyze_paper → generate_webpage
16+
```
17+
18+
1. **Extract PDF** - Convert pages to images
19+
2. **Analyze Paper** - Vision model extracts title, abstract, contributions, and describes the key diagram
20+
3. **Generate Webpage** - Creates HTML with a CSS animation illustrating the paper's core concept
21+
22+
## Setup
23+
24+
### 1. Get an NVIDIA API Key
25+
26+
1. Go to [build.nvidia.com](https://build.nvidia.com/)
27+
2. Sign in or create an account
28+
3. Navigate to [Kimi K2.5](https://build.nvidia.com/moonshotai/kimi-k2.5)
29+
4. Click "Get API Key" to generate your key
30+
31+
### 2. Install Dependencies
32+
33+
```bash
34+
# Install uv
35+
curl -LsSf https://astral.sh/uv/install.sh | sh
36+
37+
# Install dependencies
38+
uv sync
39+
```
40+
41+
### 3. Configure API Key
42+
43+
```bash
44+
cp .env.example .env
45+
```
46+
47+
Edit `.env` and add your API key:
48+
49+
```
50+
NVIDIA_API_KEY=nvapi-your-key-here
51+
```
52+
53+
## Usage
54+
55+
```bash
56+
uv run jupyter notebook kimi_vision_paper_to_page_workflow.ipynb
57+
```
58+
59+
Run all cells, then:
60+
61+
```python
62+
workflow = PaperWebpageWorkflow()
63+
result = workflow.process_and_save("your_paper.pdf")
64+
```
65+
66+
Display the output:
67+
68+
```python
69+
from IPython.display import IFrame
70+
IFrame("your_paper.html", width="100%", height=600)
71+
```
72+
73+
## Project Structure
74+
75+
```
76+
├── pyproject.toml # Dependencies
77+
├── .env.example # API key template
78+
├── README.md # This file
79+
└── kimi_vision_paper_to_page_workflow.ipynb # Main notebook
80+
```

0 commit comments

Comments
 (0)