Seym0n's picture
feat: handle images instead webcam
cb2d036
raw
history blame contribute delete
322 Bytes
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>;
};