Skip to content

Nest.js API for the TensorFlow.js Pre-Trained Toxicity Classifier

License

Notifications You must be signed in to change notification settings

deltafy/tf-toxicity-rest

Repository files navigation

TF-Toxicity-REST

A RESTful API for TensorFlow's Pre-Trained Toxicity Classifier

Description

This is a customizable Nest.js backend which runs TensorFlow's pre-trained toxicity classifier.

Installation

npm install

Usage

To run the server in development mode:

npm run start

# watch mode
npm run start:dev

API

POST /api/classifier

Content-Type: application/json

Request Content:

  • input (string | string[]): must contain a string or an array of strings.

Request Examples:

{
  "input": "You are such a <redacted>."
}

About

Nest.js API for the TensorFlow.js Pre-Trained Toxicity Classifier

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published