Commit 5a57e1f
committed
feat: add in-browser ML demo with Transformers.js sentiment analysis
Adds a ~/demo page that runs DistilBERT sentiment analysis entirely in
the browser via ONNX Runtime Web + Transformers.js — no server required.
- New /demo route (lazy-loaded) with terminal-style UI
- Model download progress bar with status text
- Textarea input + 5 example texts to try
- Confidence bars (POSITIVE/NEGATIVE) with inference time display
- EN/ZH bilingual support integrated into existing i18n system
- vite.config: exclude @xenova/transformers from Vite pre-bundling1 parent 807ad83 commit 5a57e1f
File tree
7 files changed
+1364
-9
lines changed- src
- components
- i18n
- pages
7 files changed
+1364
-9
lines changed
0 commit comments