Spaces:
Sleeping
Sleeping
Download src/types.ts from superlinked/document-ocr: direct link, hf CLI and curl.
- Browser
- Download file 571 Bytes
-
https://huggingface.co/spaces/superlinked/document-ocr/resolve/main/src/types.ts
- Command line
-
hf download hf://spaces/superlinked/document-ocr/src/types.ts
-
curl -L -o types.ts https://huggingface.co/spaces/superlinked/document-ocr/resolve/main/src/types.ts
571 Bytes
| export type SampleDoc = { | |
| id: string; | |
| filename: string; | |
| label: string; | |
| description: string; | |
| labels: string[]; | |
| }; | |
| export type ExtractedField = { | |
| label: string; | |
| text: string; | |
| score: number; | |
| }; | |
| export type DonutEntity = { | |
| label: string; | |
| text: string; | |
| }; | |
| export type TriageResult = { | |
| sampleId: string; | |
| recognitionModel: string; | |
| markdown: string; | |
| donutEntities: DonutEntity[]; | |
| donutData: unknown; | |
| glinerFields: ExtractedField[]; | |
| timings: { | |
| recognitionMs: number; | |
| donutMs: number; | |
| glinerMs: number; | |
| totalMs: number; | |
| }; | |
| }; | |