From 5419286c3717885ee5e72302edf754d02d2020d9 Mon Sep 17 00:00:00 2001 From: Sam Sneed <163201376+sam-sneed@users.noreply.github.com> Date: Fri, 31 May 2024 21:54:34 +0000 Subject: [PATCH] Update jspp.js --- jspp.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/jspp.js b/jspp.js index d0df6cd..289867a 100644 --- a/jspp.js +++ b/jspp.js @@ -14,9 +14,9 @@ class JSPlusPlus { isToxic(sentences) { // Load the model. Users optionally pass in a threshold and an array of // labels to include. - const help = new JSPlusPlus.General.Helpers - help.require("https://cdn.jsdelivr.net/npm/@tensorflow/tfjs") - help.require("https://cdn.jsdelivr.net/npm/@tensorflow-models/toxicity") + const gen = new JSPlusPlus.General + gen.require("https://cdn.jsdelivr.net/npm/@tensorflow/tfjs") + gen.require("https://cdn.jsdelivr.net/npm/@tensorflow-models/toxicity") let threshold = 0.9; let toxic = false @@ -754,8 +754,8 @@ class JSPlusPlus { initGun(relays = []) { - const help = new JSPlusPlus.General.Helpers - help.require("https://cdn.jsdelivr.net/npm/gun/gun.js") + const gen = new JSPlusPlus.General + gen.require("https://cdn.jsdelivr.net/npm/gun/gun.js") return Gun(relays) } }