Vokturz's picture
example working
948b11c
raw
history blame
423 Bytes
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';