fix(facial-expressions): base url for models (#11218)
This commit is contained in:
parent
25f53503e8
commit
7751060b63
|
@ -67,8 +67,8 @@ export function loadWorker() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const baseUrl = getBaseUrl();
|
const baseUrl = `${getBaseUrl()}/libs/`;
|
||||||
let workerUrl = `${baseUrl}libs/facial-expressions-worker.min.js`;
|
let workerUrl = `${baseUrl}facial-expressions-worker.min.js`;
|
||||||
|
|
||||||
const workerBlob = new Blob([ `importScripts("${workerUrl}");` ], { type: 'application/javascript' });
|
const workerBlob = new Blob([ `importScripts("${workerUrl}");` ], { type: 'application/javascript' });
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue