UNPKG

react-native-executorch

Version:

An easy way to run AI models in react native with ExecuTorch

14 lines (13 loc) 484 B
"use strict"; import { TextEmbeddingsNativeModule } from '../../native/RnExecutorchModules'; import { BaseModule } from '../BaseModule'; export class TextEmbeddingsModule extends BaseModule { static nativeModule = TextEmbeddingsNativeModule; static async load(modelSource, tokenizerSource) { await super.load(modelSource, tokenizerSource); } static async forward(input) { return this.nativeModule.forward(input); } } //# sourceMappingURL=TextEmbeddingsModule.js.map