File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 11diff --git a/node_modules/@xenova/transformers/src/backends/onnx.js b/node_modules/@xenova/transformers/src/backends/onnx.js
2- index 92cbfb2..8e05e5c 100644
2+ index b8d9b8d..8d1013c 100644
33--- a/node_modules/@xenova/transformers/src/backends/onnx.js
44+++ b/node_modules/@xenova/transformers/src/backends/onnx.js
5- @@ -17,16 +17,31 @@
5+ @@ -16,7 +16,7 @@
6+ * @module backends/onnx
67 */
78
8- // NOTE: Import order matters here. We need to import `onnxruntime-node` before `onnxruntime-web`.
9- - export * as ONNX from 'onnxruntime-common';
10- + export * as ONNX from '@fugood/onnxruntime-common';
9+ - import * as ONNX_COMMON from 'onnxruntime-common';
10+ + import * as ONNX_COMMON from '@fugood/onnxruntime-common';
1111
12- export const executionProviders = [
13- // 'webgpu',
14- - 'wasm'
15- + 'wasm',
16- ];
12+ /** @type {module} The ONNX runtime module. */
13+ export const ONNX = ONNX_COMMON?.default ?? ONNX_COMMON;
14+ @@ -28,8 +28,23 @@ export const executionProviders = [
1715
1816 if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {
17+ // Running in a react native environment.
1918- import('onnxruntime-react-native');
2019+ import('@fugood/onnxruntime-react-native');
2120 executionProviders.unshift('cpu');
Original file line number Diff line number Diff line change @@ -6156,7 +6156,7 @@ onnxruntime-node@1.14.0:
61566156 dependencies :
61576157 onnxruntime-common "~1.14.0"
61586158
6159- onnxruntime-react-native@1.14.0, onnxruntime-react-native@^1.14.0 :
6159+ onnxruntime-react-native@1.14.0 :
61606160 version "1.14.0"
61616161 resolved "https://registry.yarnpkg.com/onnxruntime-react-native/-/onnxruntime-react-native-1.14.0.tgz#8ef35c02a90414338e6fc392f4cf5a8498fdaa90"
61626162 integrity sha512-hF0ZhJyOnUyV0rPWCAFmzPs/WHbv1msAJmYadRCQp3A4GcCgDHpHnopInskPnUPZU4NnH30lxcw3BhxtXGL17A==
You can’t perform that action at this time.
0 commit comments