Update jspp.js
This commit is contained in:
parent
4aa90e68db
commit
19d54b7e20
1 changed files with 1 additions and 1 deletions
2
jspp.js
2
jspp.js
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue