Skip to content

Commit 9903e34

Browse files
committed
fix jsi-binding
1 parent 2cf108f commit 9903e34

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/react-native-executorch/common/rnexecutorch/RnExecutorchInstaller.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
#include <rnexecutorch/models/image_segmentation/ImageSegmentation.h>
88
#include <rnexecutorch/models/llm/LLM.h>
99
#include <rnexecutorch/models/object_detection/ObjectDetection.h>
10+
#include <rnexecutorch/models/ocr/OCR.h>
1011
#include <rnexecutorch/models/style_transfer/StyleTransfer.h>
1112
#include <rnexecutorch/models/text_embeddings/TextEmbeddings.h>
12-
1313
namespace rnexecutorch {
1414

1515
// This function fetches data from a url address. It is implemented in
@@ -65,6 +65,10 @@ void RnExecutorchInstaller::injectJSIBindings(
6565
jsiRuntime->global().setProperty(*jsiRuntime, "loadLLM",
6666
RnExecutorchInstaller::loadModel<LLM>(
6767
jsiRuntime, jsCallInvoker, "loadLLM"));
68+
69+
jsiRuntime->global().setProperty(*jsiRuntime, "loadOCR",
70+
RnExecutorchInstaller::loadModel<OCR>(
71+
jsiRuntime, jsCallInvoker, "loadOCR"));
6872
}
6973

7074
} // namespace rnexecutorch

0 commit comments

Comments
 (0)