File size: 469 Bytes
d5c6d34
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
export type VLMContextValue = {
  isLoaded: boolean;
  isLoading: boolean;
  error: string | null;
  loadModel: (
    onProgress?: (msg: string, percentage: number) => void,
  ) => Promise<void>;
  runInference: (
    video: HTMLVideoElement,
    instruction: string,
    onTextUpdate?: (text: string) => void,
    onStatsUpdate?: (stats: { tps?: number; ttft?: number }) => void,
  ) => Promise<string>;
  imageSize: number;
  setImageSize: (size: number) => void;
};