From aec5ff7cbda80c4571857a9bea80799e0df86ef8 Mon Sep 17 00:00:00 2001 From: Belem Zhang Date: Wed, 13 Sep 2023 17:30:04 +0800 Subject: [PATCH] testqueue --- src/routes/run/mobilenet_v2/+page.svelte | 6 +++++- src/routes/run/resnet50_v1/+page.svelte | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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,