Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amandamartin-dev/velo-tensorflow
https://github.com/amandamartin-dev/velo-tensorflow
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/amandamartin-dev/velo-tensorflow
- Owner: amandamartin-dev
- Created: 2022-11-30T22:10:10.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-16T18:34:10.000Z (7 months ago)
- Last Synced: 2025-01-11T10:43:25.391Z (16 days ago)
- Language: JavaScript
- Size: 355 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-wix - Tensorflow + Velo Tutorial - see an example of how to use Tensorflow.js with Velo. Made by **AmandaM**. (Uncategorized / Uncategorized)
- awesome-wix - Tensorflow + Velo Tutorial - see an example of how to use Tensorflow.js with Velo. Made by **AmandaM**. (Uncategorized / Uncategorized)
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 onAdd 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