Based on https://github.com/tensorflow/tfjs-models/tree/master/toxicity/demo
This demo shows how to use predictions produced by the Tensorflow Toxicity classifier.
It is a basic attempt to showcase how ML models could be run on Cloudflare Workers. Please check the reporsitory tags to view the progression of attempted implementations and solutions.
To run this project locally, make sure you have Wrangler installed.
Install dependencies:
yarn
Launch a dev server and code away:
yarn dev
Build assets:
yarn build