File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
packages/react-native-executorch/src
modules/natural_language_processing Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,11 @@ export class OCRController extends BaseOCRController {
99 recognizerPath : string ,
1010 language : OCRLanguage
1111 ) : Promise < any > {
12- return await global . loadOCR ( detectorPath , recognizerPath , symbols [ language ] ) ;
12+ return await global . loadOCR (
13+ detectorPath ,
14+ recognizerPath ,
15+ symbols [ language ]
16+ ) ;
1317 }
1418
1519 public load = async (
Original file line number Diff line number Diff line change @@ -53,7 +53,10 @@ declare global {
5353 var loadTokenizerModule : ( source : string ) => Promise < any > ;
5454 var loadImageEmbeddings : ( source : string ) => Promise < any > ;
5555 var loadVAD : ( source : string ) => Promise < any > ;
56- var loadTextEmbeddings : ( modelSource : string , tokenizerSource : string ) => Promise < any > ;
56+ var loadTextEmbeddings : (
57+ modelSource : string ,
58+ tokenizerSource : string
59+ ) => Promise < any > ;
5760 var loadLLM : ( modelSource : string , tokenizerSource : string ) => Promise < any > ;
5861 var loadTextToImage : (
5962 tokenizerSource : string ,
Original file line number Diff line number Diff line change @@ -44,7 +44,10 @@ export class TextEmbeddingsModule extends BaseModule {
4444 'The download has been interrupted. As a result, not every file was downloaded. Please retry the download.'
4545 ) ;
4646 }
47- this . nativeModule = await global . loadTextEmbeddings ( modelPath , tokenizerPath ) ;
47+ this . nativeModule = await global . loadTextEmbeddings (
48+ modelPath ,
49+ tokenizerPath
50+ ) ;
4851 } catch ( error ) {
4952 Logger . error ( 'Load failed:' , error ) ;
5053 throw parseUnknownError ( error ) ;
You can’t perform that action at this time.
0 commit comments