mirror of
https://github.com/the-spellman/js-plus-plus-toxicity-demo
synced 2024-12-23 17:42:35 -06:00
Update index.html
This commit is contained in:
parent
9c62d59c3f
commit
f5b33d7ea3
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<script src="https://cdn.jsdelivr.net/gh/Sneed-Group/js-plus-plus@4aa90e68db61d04b982eeb4a9ec8c3aac4349245/jspp.js"></script>
|
<script src="https://cdn.jsdelivr.net/gh/Sneed-Group/js-plus-plus@19d54b7e202dc7ba84d9cd3a45af70b62c74c055/jspp.js"></script>
|
||||||
<script>
|
<script>
|
||||||
const helpers = new JSPlusPlus.General.Helpers
|
const helpers = new JSPlusPlus.General.Helpers
|
||||||
const html = new JSPlusPlus.HTMLFrontend
|
const html = new JSPlusPlus.HTMLFrontend
|
||||||
|
@ -9,7 +9,7 @@ function tox() {
|
||||||
const sentence = document.getElementById("textBox1").value
|
const sentence = document.getElementById("textBox1").value
|
||||||
let p = document.getElementById("toxicityBool")
|
let p = document.getElementById("toxicityBool")
|
||||||
const objSentence = [sentence]
|
const objSentence = [sentence]
|
||||||
let toxic = helpers.isToxic(objSentence)
|
let toxic = await helpers.isToxic(objSentence)
|
||||||
p.innerText = toxic
|
p.innerText = toxic
|
||||||
console.log(toxic)
|
console.log(toxic)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue