microsoft / onnxruntime-inference-examples

Examples for using ONNX Runtime for machine learning inferencing.
MIT License
1.15k stars 323 forks source link

Error in ort-whisper example — failed to fetch ort-wasm-simd-threaded.mjs #461

Open psychemedia opened 3 weeks ago

psychemedia commented 3 weeks ago

Trying to run https://github.com/microsoft/onnxruntime-inference-examples/tree/main/js/ort-whisper , the application generates an error:

ERR: [wasm] TypeError: Failed to fetch dynamically imported module: http://localhost:8976/dist/ort-wasm-simd-threaded.mjs

The bundler generates the following files in dist/:

5726a4787647bcd72cb9.wasm       ort-training-wasm-simd-threaded.wasm
bundle.min.js               ort-wasm-simd-threaded.jsep.wasm
bundle.min.js.LICENSE.txt       ort-wasm-simd-threaded.wasm
satyajandhyala commented 3 days ago

There was a fix today checked-in to main. This should be fixed the next nightly build. https://github.com/microsoft/onnxruntime/pull/22103