diff --git a/src/routes/run/mobilenet_v2/+page.svelte b/src/routes/run/mobilenet_v2/+page.svelte index b2eb175..87afede 100644 --- a/src/routes/run/mobilenet_v2/+page.svelte +++ b/src/routes/run/mobilenet_v2/+page.svelte @@ -45,7 +45,11 @@ }; const runTests = async () => { - if (testQueue[0] && location.pathname.replace('/run/', '') === testQueue[0].model) { + if ( + testQueue[0] && + location.pathname.replace('/web-ai-benchmark/run/', '').replace('/run/', '') === + testQueue[0].model + ) { let t0 = testQueue[0]; let r = { id: t0.id, diff --git a/src/routes/run/resnet50_v1/+page.svelte b/src/routes/run/resnet50_v1/+page.svelte index b2eb175..87afede 100644 --- a/src/routes/run/resnet50_v1/+page.svelte +++ b/src/routes/run/resnet50_v1/+page.svelte @@ -45,7 +45,11 @@ }; const runTests = async () => { - if (testQueue[0] && location.pathname.replace('/run/', '') === testQueue[0].model) { + if ( + testQueue[0] && + location.pathname.replace('/web-ai-benchmark/run/', '').replace('/run/', '') === + testQueue[0].model + ) { let t0 = testQueue[0]; let r = { id: t0.id,