699048b
1
2
3
4
5
6
7
8
9
10
from pydantic import BaseModel from typing import List class OCRLine(BaseModel): text: str confidence: float class OCRResponse(BaseModel): lines: List[OCRLine]