Skip to content

Commit

Permalink
Change ONNX runtime web to pin to 1.17.1
Browse files Browse the repository at this point in the history
1.18.0 isn't working, and its bizarre.

When I use:
import * as ort from 'https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/esm/ort.min.js';

It says:
ort-wasm-threaded.js:54 Uncaught (in promise) TypeError: $a is not a function
    at i.__emscripten_thread_init (ort-wasm-threaded.js:54:173)

When I use:
import * as ort from 'https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/ort.min.js';

it says

InferenceSession is not available in ONNX Runtime
  • Loading branch information
jpohhhh committed Jun 15, 2024
1 parent 710efed commit 22c9433
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/fonnx_magika_worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as ort from 'https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/esm/ort.min.js';
import * as ort from 'https://cdn.jsdelivr.net/npm/onnxruntime-web@1.17.1/dist/esm/ort.min.js';

let session = null;

Expand Down
2 changes: 1 addition & 1 deletion docs/fonnx_minilm_worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as ort from 'https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/esm/ort.min.js';
import * as ort from 'https://cdn.jsdelivr.net/npm/onnxruntime-web@1.17.1/dist/esm/ort.min.js';

let session = null;

Expand Down
2 changes: 1 addition & 1 deletion docs/fonnx_silero_vad_worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as ort from 'https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/esm/ort.min.js';
import * as ort from 'https://cdn.jsdelivr.net/npm/onnxruntime-web@1.17.1/dist/esm/ort.min.js';

let session = null;

Expand Down
2 changes: 1 addition & 1 deletion docs/fonnx_whisper_worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as ort from 'https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/esm/ort.min.js';
import * as ort from 'https://cdn.jsdelivr.net/npm/onnxruntime-web@1.17.1/dist/esm/ort.min.js';

let session = null;

Expand Down
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ SPEC CHECKSUMS:
file_picker: 15fd9539e4eb735dc54bae8c0534a7a9511a03de
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
fonnx: 43ccf5b747f218b7cf389d84c5b841aada6cb70d
integration_test: 13825b8a9334a850581300559b8839134b124670
integration_test: ce0a3ffa1de96d1a89ca0ac26fca7ea18a749ef4
onnxruntime-c: f5350dc5e5c4a25d0b2887a7320b8589db84431a
onnxruntime-extensions-c: 05cabc77ae90a851127fb966e1b4159d5da42874
onnxruntime-objc: f801d5bd43ac14110136f707dccf0c851822b51e
path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
record_darwin: 1f6619f2abac4d1ca91d3eeab038c980d76f1517
SDWebImage: a3ba0b8faac7228c3c8eadd1a55c9c9fe5e16457
SwiftyGif: 93a1cc87bf3a51916001cf8f3d63835fb64c819f
Expand Down
2 changes: 1 addition & 1 deletion example/web/magika_worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as ort from 'https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/esm/ort.min.js';
import * as ort from 'https://cdn.jsdelivr.net/npm/onnxruntime-web@1.17.1/dist/esm/ort.min.js';

let session = null;

Expand Down
2 changes: 1 addition & 1 deletion example/web/minilm_worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as ort from 'https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/esm/ort.min.js';
import * as ort from 'https://cdn.jsdelivr.net/npm/onnxruntime-web@1.17.1/dist/esm/ort.min.js';

let session = null;

Expand Down
2 changes: 1 addition & 1 deletion example/web/silero_vad_worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as ort from 'https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/esm/ort.min.js';
import * as ort from 'https://cdn.jsdelivr.net/npm/onnxruntime-web@1.17.1/dist/esm/ort.min.js';

let session = null;

Expand Down
2 changes: 1 addition & 1 deletion example/web/whisper_worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as ort from 'https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/esm/ort.min.js';
import * as ort from 'https://cdn.jsdelivr.net/npm/onnxruntime-web@1.17.1/dist/esm/ort.min.js';

let session = null;

Expand Down

0 comments on commit 22c9433

Please sign in to comment.