From dabc2af15baad67d92ac5e9d1b2b2a588167664f Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Fri, 2 Dec 2022 12:04:06 -0800 Subject: [PATCH] Fix base bath loading in Fileset resolver PiperOrigin-RevId: 492526041 --- mediapipe/tasks/web/core/fileset_resolver.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mediapipe/tasks/web/core/fileset_resolver.ts b/mediapipe/tasks/web/core/fileset_resolver.ts index 7d68dbc16..d4691243b 100644 --- a/mediapipe/tasks/web/core/fileset_resolver.ts +++ b/mediapipe/tasks/web/core/fileset_resolver.ts @@ -48,16 +48,16 @@ async function createFileset( if (await isSimdSupported()) { return { wasmLoaderPath: - `/${basePath}/${taskName}_wasm_internal.js`, + `${basePath}/${taskName}_wasm_internal.js`, wasmBinaryPath: - `/${basePath}/${taskName}_wasm_internal.wasm`, + `${basePath}/${taskName}_wasm_internal.wasm`, }; } else { return { wasmLoaderPath: - `/${basePath}/${taskName}_wasm_nosimd_internal.js`, - wasmBinaryPath: `/${basePath}/${ - taskName}_wasm_nosimd_internal.wasm`, + `${basePath}/${taskName}_wasm_nosimd_internal.js`, + wasmBinaryPath: + `${basePath}/${taskName}_wasm_nosimd_internal.wasm`, }; } }