woolball-client
Version:
Client-side library for Woolball enabling secure browser resource sharing for distributed AI task processing
13 lines (12 loc) • 386 B
TypeScript
export type TaskType = 'automatic-speech-recognition' | 'text-to-speech' | 'translation' | 'text-generation';
export interface TaskData {
input: string;
model: string;
dtype?: string;
provider?: 'transformers' | 'webllm' | 'mediapipe';
[key: string]: any;
}
export type TaskResult = any;
export interface TaskProcessor {
(data: TaskData): Promise<TaskResult>;
}