Vokturz's picture
add loader to zero-shot classification and add sentiment analysis pipeline
0b82ec0
raw
history blame
497 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' | 'progress';
output?: any;
}
export interface ZeroShotWorkerInput {
text: string;
labels: string[];
}
export interface SentimentAnalysisWorkerInput {
text: string;
}
export type AppStatus = 'idle' | 'loading' | 'processing';