Just trying to load an .onnx
model that I have into browser using onnxruntime-web
The code is run in a React app using a vite server,
import * as ort from 'onnxruntime-web';
const App = () => {
const create = async () => {
const session = await ort.InferenceSession.create('./src/assets/silero_vad.onnx');
}
create();
return <>Hello world</>
}
export default App
.wasm
module fails to load and gives error
GET http://localhost:5173/ort-wasm-simd.wasm net::ERR_ABORTED 404 (Not Found)
Using Google chrome version Google Chrome 112.0.5615.165
on Ubuntu 22.04. No idea how to fix this?