Skip to content

Files

Latest commit

7fc9337 · Dec 6, 2023

History

History

demo

README.md

Toxicity classifier demo

Contents

The demo shows how to use predictions produced by the Toxicity classifier.

Setup

cd into the demo folder:

cd toxicity/demo

Install dependencies and prepare the build directory:

yarn

To watch files for changes, and launch a dev server:

yarn watch

If you are developing toxicity locally, and want to test the changes in the demo

cd into the toxicity folder:

cd toxicity

Install dependencies:

yarn

Build and publish toxicity locally:

yarn publish-local

Cd into the demo and install dependencies:

cd demo
yarn

Link the local toxicity to the demo:

yarn link-local

Start the dev demo server:

yarn watch

To get future updates from the toxicity source code:

# cd up into the toxicity directory
cd ../
yarn publish-local