diff --git a/examples/index.html b/examples/webgpu/efficientnet/index.html similarity index 97% rename from examples/index.html rename to examples/webgpu/efficientnet/index.html index dab046852e..fccd7e5744 100644 --- a/examples/index.html +++ b/examples/webgpu/efficientnet/index.html @@ -17,7 +17,7 @@ canvas { display: none; } * { text-align: center; font-family: monospace; } tinygrad has WebGPU - + @@ -61,7 +61,7 @@ canvas { display: none; } const getLabels = async () => (await fetch("https://raw.githubusercontent.com/anishathalye/imagenet-simple-labels/master/imagenet-simple-labels.json")).json(); - const getSavetensorBuffer = async () => new Uint8Array(await (await fetch("./net.safetensors")).arrayBuffer()); + const getSavetensorBuffer = async () => new Uint8Array(await (await fetch("../../net.safetensors")).arrayBuffer()); const reorderChannelsAndRemoveAlpha = (data) => { const out = []; diff --git a/test/web/test_webgpu.js b/test/web/test_webgpu.js index eb32a217cc..1c953da8ae 100644 --- a/test/web/test_webgpu.js +++ b/test/web/test_webgpu.js @@ -47,7 +47,7 @@ async function runTest() { console.log(`error from page ${message}`), ); - const res = await page.goto("http://localhost:8000/examples/index.html"); + const res = await page.goto("http://localhost:8000/examples/webgpu/efficientnet/index.html"); if (res.status() !== 200) throw new Error("Failed to load page"); const textSelector = await page.waitForSelector("#result");