Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/amandamartin-dev/velo-tensorflow


https://github.com/amandamartin-dev/velo-tensorflow

Last synced: 15 days ago
JSON representation

Awesome Lists containing this project

README

        

# 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](https://github.com/amandamartin-dev/velo-tensorflow/blob/main/updated%20packages.jpg?raw=true)

# 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