Update jspp.js
This commit is contained in:
parent
19d54b7e20
commit
b4fc52365e
1 changed files with 1 additions and 1 deletions
2
jspp.js
2
jspp.js
|
@ -19,7 +19,7 @@ class JSPlusPlus {
|
||||||
gen.require("https://cdn.jsdelivr.net/npm/@tensorflow-models/toxicity")
|
gen.require("https://cdn.jsdelivr.net/npm/@tensorflow-models/toxicity")
|
||||||
let threshold = 0.9;
|
let threshold = 0.9;
|
||||||
let t = await toxicity.load(threshold).then(model => {
|
let t = await toxicity.load(threshold).then(model => {
|
||||||
let m = await model.classify(sentences).then(predictions => {
|
let m =model.classify(sentences).then(predictions => {
|
||||||
let p = await predictions
|
let p = await predictions
|
||||||
console.log(p)
|
console.log(p)
|
||||||
return p
|
return p
|
||||||
|
|
Loading…
Reference in a new issue