File size: 733 Bytes
c81396d
1aa12c7
 
 
 
c81396d
 
1aa12c7
c81396d
 
1aa12c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: MOCR Inference
emoji: 🏈
colorFrom: blue
colorTo: purple
sdk: docker
pinned: false
license: mit
---

# dots.mocr SVG Inference Server

Football play diagram OCR using the dots.mocr model.

## API Usage

Send POST requests to `/v1/chat/completions` with base64-encoded images.

```bash
curl -X POST https://LordLP9000-mocr-inference.hf.space/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "rednote-hilab/dots.mocr-svg",
    "messages": [{
      "role": "user",
      "content": [
        {"type": "text", "text": "Extract football plays from this image"},
        {"type": "image_url", "image_url": {"url": "data:image/png;base64,..."}}
      ]
    }],
    "max_tokens": 4000
  }'
```