File tree Expand file tree Collapse file tree
packages/react-native-executorch/common/rnexecutorch Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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-
1313namespace 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
You can’t perform that action at this time.
0 commit comments