From 4a3a9917dd35841793fb2388a4a5189f9092f533 Mon Sep 17 00:00:00 2001 From: Sam Sneed <163201376+sam-sneed@users.noreply.github.com> Date: Fri, 31 May 2024 21:35:17 +0000 Subject: [PATCH] Update jspp.js --- jspp.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jspp.js b/jspp.js index c61f96b..89d9856 100644 --- a/jspp.js +++ b/jspp.js @@ -2,6 +2,9 @@ // Created by Samuel Lord (NodeMixaholic/Sparksammy) // Now Maintained by Sneed Group // Licensed under Samuel Public License with <3 + +const pp = new JSPlusPlus +const htmlFront = new JSPlusPlus.HTMLFrontend class JSPlusPlus { static General = class { @@ -11,7 +14,6 @@ class JSPlusPlus { } isToxic(sentences) { - let pp = new JSPlusPlus // Load the model. Users optionally pass in a threshold and an array of // labels to include. pp.require("https://cdn.jsdelivr.net/npm/@tensorflow/tfjs") @@ -348,7 +350,6 @@ class JSPlusPlus { } static HTMLFrontend = class { - htmlFront = new JSPlusPlus.HTMLFrontend // Get element by ID getElementById(elementID) { return document.getElementById(elementID)