UNPKG

react-native-executorch

Version:

An easy way to run AI models in React Native with ExecuTorch

17 lines (16 loc) 466 B
import { ResourceSource } from '../../types/common'; interface Props { model: { modelSource: ResourceSource; tokenizerSource: ResourceSource; }; preventLoad?: boolean; } export declare const useTextEmbeddings: ({ model, preventLoad }: Props) => { error: string | null; isReady: boolean; isGenerating: boolean; downloadProgress: number; forward: (input: string) => Promise<Float32Array<ArrayBufferLike>>; }; export {};