Update jspp.js

This commit is contained in:
Sam Sneed 2024-05-31 23:19:53 +00:00 committed by GitHub
parent 4aa90e68db
commit 19d54b7e20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,7 +11,7 @@ class JSPlusPlus {
return new Promise(resolve => setTimeout(resolve, ms)); return new Promise(resolve => setTimeout(resolve, ms));
} }
isToxic(sentences) { async isToxic(sentences) {
// Load the model. Users optionally pass in a threshold and an array of // Load the model. Users optionally pass in a threshold and an array of
// labels to include. // labels to include.
const gen = new JSPlusPlus.General const gen = new JSPlusPlus.General