from pydantic import BaseModel from typing import List class OCRLine(BaseModel): text: str confidence: float class OCRResponse(BaseModel): lines: List[OCRLine]