diff --git a/examples/browser/index.html b/examples/browser/index.html new file mode 100644 index 0000000..caa8545 --- /dev/null +++ b/examples/browser/index.html @@ -0,0 +1,222 @@ + + + + + + OPF in the browser + + + +

OpenAI Privacy Filter — browser demo

+

+ Runs openai/privacy-filter entirely in your browser via + Transformers.js, + preferring WebGPU and falling back to WASM. + The first run downloads the q4f16-quantized ONNX weights (~810 MB) + and caches them in the browser's Cache Storage; later loads are instant. +

+ + + +

+ + loading model… +

+ +
+
+
+
+ +

Redacted output

+
+ +

Detected spans

+ + + +
typetextscore
+ + + + diff --git a/examples/browser/package.json b/examples/browser/package.json new file mode 100644 index 0000000..1dc5051 --- /dev/null +++ b/examples/browser/package.json @@ -0,0 +1,11 @@ +{ + "name": "browser", + "version": "1.0.0", + "description": "", + "license": "ISC", + "author": "", + "type": "commonjs", + "scripts": { + "start": "npx --yes serve ." + } +}