From 41ca020fa5576527ab7a3e5931dc0c6122193995 Mon Sep 17 00:00:00 2001 From: Belem Zhang Date: Fri, 25 Oct 2024 10:26:07 +0800 Subject: [PATCH] Add note for: Deploy To Your Github Pages (#292) --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index f90486ff..5808a3c8 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,10 @@ To get started, follow these steps: 5. Keep in mind that WebNN currently supports the CPU backend only on Chrome or Edge browsers, and it requires enabling the experimental web platform features flag (see below). Ensure you have this flag enabled in your browser to fully experience WebNN functionality. 6. Experiment with the code and explore how WebNN can enhance machine learning tasks in the browser, navigating to http://localhost:8080. +### Deploy To Your Github Pages + +WebNN Samples is currently hosted on GitHub Pages, with model files stored on Amazon S3 and distributed via CloudFront. If you host WebNN Samples on your own GitHub Pages, you may encounter a 'failed to fetch' error due to CORS policy restrictions. To resolve this issue, please update the [weightsOrigin() configuration](https://github.com/webmachinelearning/webnn-samples/blob/master/common/utils.js#L6) as described in the [issue 285](https://github.com/webmachinelearning/webnn-samples/issues/285#issuecomment-2408988830). + ### WebNN Installation Guides To get started with WebNN on Intel AI PCs you will need: