Skip to content

Commit

Permalink
Update WebNN EP package for SD Turbo
Browse files Browse the repository at this point in the history
  • Loading branch information
ibelem committed Jul 24, 2024
1 parent f8adae8 commit 41f5e1e
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions demos/sd-turbo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -993,15 +993,10 @@ const webNnStatus = async () => {
};

const setupORT = async () => {
const ortVersionLabel = document.querySelector("#ortversion");
const ortversion = document.querySelector("#ortversion");
removeElement("onnxruntime-web");
const ortVersionString = "1.18.0";
const ortLink = `https://www.npmjs.com/package/onnxruntime-web/v/${ortVersionString}`;
ortVersionLabel.innerHTML = `ONNX Runtime Web: <a href="${ortLink}">${ortVersionString}</a>`;
await loadScript(
"onnxruntime-web",
`https://cdn.jsdelivr.net/npm/onnxruntime-web@${ortVersionString}/dist/ort.all.min.js`
);
await loadScript("onnxruntime-web", "../../assets/dist/ort.all.min.js");
ortversion.innerHTML = `ONNX Runtime Web: Test version`;
};

const loadScript = async (id, url) => {
Expand Down

0 comments on commit 41f5e1e

Please sign in to comment.