File size: 322 Bytes
ff324d9
 
 
 
 
 
cb2d036
ff324d9
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
export type VLMContextValue = {
  isLoaded: boolean;
  isLoading: boolean;
  error: string | null;
  loadModel: (onProgress?: (msg: string) => void) => Promise<void>;
  runInference: (
    imageSource: HTMLVideoElement | File,
    instruction: string,
    onTextUpdate?: (text: string) => void,
  ) => Promise<string>;
};