File size: 1,039 Bytes
8839278 | 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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | /// <reference types="vite/client" />
export type ModelChoice = "OvisOCR2" | "GLM-OCR";
export type PageResult = {
page_number: number;
markdown: string;
render_markdown: string;
status: string;
elapsed_seconds: number;
};
export type OcrPayload = {
event: string;
markdown: string;
render_markdown: string;
pages: PageResult[];
current_page: number;
total_pages: number;
document_type: string;
page_preview?: string | null;
batch_complete?: boolean;
batch_start_page?: number | null;
batch_end_page?: number | null;
char_count: number;
elapsed_seconds: number;
model: string;
model_choice: ModelChoice;
backend: string;
mode: string;
};
export type GradioFileData = {
path: string;
url?: string | null;
orig_name?: string;
size?: number;
mime_type?: string;
meta: { _type: "gradio.FileData" };
};
declare global {
interface Window {
MathJax?: {
startup?: { promise?: Promise<void> };
typesetPromise?: (elements?: HTMLElement[]) => Promise<void>;
};
}
}
|