react-native-executorch
Version:
An easy way to run AI models in React Native with ExecuTorch
16 lines (15 loc) • 432 B
TypeScript
import { ResourceSource } from '../../types/common';
interface Props {
model: {
modelSource: ResourceSource;
};
preventLoad?: boolean;
}
export declare const useImageEmbeddings: ({ model, preventLoad }: Props) => {
error: string | null;
isReady: boolean;
isGenerating: boolean;
downloadProgress: number;
forward: (imageSource: string) => Promise<Float32Array<ArrayBufferLike>>;
};
export {};