export interface Section { | |
title: string; | |
items: string[]; | |
} | |
export interface ClassificationOutput { | |
sequence: string; | |
labels: string[]; | |
scores: number[]; | |
} | |
export interface WorkerMessage { | |
status: 'initiate' | 'ready' | 'output' | 'complete'; | |
output?: ClassificationOutput; | |
} | |
export interface WorkerInput { | |
text: string; | |
labels: string[]; | |
} | |
export type AppStatus = 'idle' | 'loading' | 'processing'; | |