Skip to content

amandamartin-dev/velo-tensorflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Updated

This code was recently revisited and updated for use web,js files and is compatible with Classic Wix or Wix Studio.
This code may require additional dependencies to work beyond /tfjs and /toxicity. Start with those two packages as reccomended by tensorflow. This demo was completed with the following dependencies installed on Wix Studio.

list of NPM packages

Code to support the Velo and Tensorflow example

This code applies the tensorflow toxicity model in a basic chat moderation flow on Velo by Wix

Setup

To use this code you must first create a wix site with Wix Chat enabled and dev mode turned on

Add the following NPM packages to your velo site @tensorflow/tfjs @tensorflow-models/toxicity

Place the two files in your backend code. Note that events.js is a reserved file name. If you change this, the code will not run. toxicity can be renamed, however, make sure to update any references to this file if you do so.

Credit

This example is based on code modified from this demo repo: https://github.com/tensorflow/tfjs-models/blob/master/toxicity/demo/index.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published