diff --git a/examples/imageCaptioning.js b/examples/imageCaptioning.js index fdb05e5..26f5d4d 100644 --- a/examples/imageCaptioning.js +++ b/examples/imageCaptioning.js @@ -14,6 +14,8 @@ async function run() { // detect visualization framework Boostlet.init(); + Boostlet.category = "LLM Models" + const requestData = await request(); console.log(requestData); diff --git a/examples/melanoma.js b/examples/melanoma.js index a163b18..a1ac3d8 100644 --- a/examples/melanoma.js +++ b/examples/melanoma.js @@ -35,9 +35,9 @@ async function run() { // detect visualization framework Boostlet.init(); - getImage(); - + Boostlet.category = "Machine Learning" + getImage(); } diff --git a/examples/plotly.js b/examples/plotly.js index 9dc24a5..28f77f5 100644 --- a/examples/plotly.js +++ b/examples/plotly.js @@ -11,6 +11,8 @@ function run() { // detect visualization framework Boostlet.init(); + Boostlet.category = "Data Visualization" + all_pixels = Boostlet.get_image().data; // load Plotly.js library and start plotting in the onload callback diff --git a/examples/segmentanything.js b/examples/segmentanything.js index be3504a..8c0260f 100644 --- a/examples/segmentanything.js +++ b/examples/segmentanything.js @@ -43,6 +43,8 @@ function run() { // detect visualization framework Boostlet.init(); + Boostlet.category = "Machine Learning" + // load ONNX.js Boostlet.load_script('https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/ort.min.js'); diff --git a/examples/sobel.js b/examples/sobel.js index 6d144b9..f4645c6 100644 --- a/examples/sobel.js +++ b/examples/sobel.js @@ -1,6 +1,7 @@ script = document.createElement("script"); script.type = "text/javascript"; script.src = "https://boostlet.org/dist/boostlet.min.js"; +// script.src = "http://localhost:5500/dist/boostlet.min.js"; script.onload = run; document.head.appendChild(script); @@ -12,6 +13,8 @@ function run() { // detect visualization framework Boostlet.init(); + Boostlet.category = "Filters" + image = Boostlet.get_image(); kernel = [ diff --git a/examples/trako.js b/examples/trako.js index 5010ba6..279d16c 100644 --- a/examples/trako.js +++ b/examples/trako.js @@ -18,6 +18,8 @@ async function run() { // detect visualization framework Boostlet.init(); + Boostlet.category = "Filters" + // using the XTK TRAKO FILE READER libs = ["https://bostongfx.github.io/TRAKO/WEB/js/xtk.js", "https://bostongfx.github.io/TRAKO/WEB/js/draco/draco_decoder.js", diff --git a/examples/webllm.js b/examples/webllm.js index 2607d21..6ecf170 100644 --- a/examples/webllm.js +++ b/examples/webllm.js @@ -1,8 +1,8 @@ script = document.createElement("script"); script.type = "text/javascript"; -//script.src = "https://boostlet.org/dist/boostlet.min.js"; +script.src = "https://boostlet.org/dist/boostlet.min.js"; // script.src = "http://localhost:5500/dist/boostlet.min.js"; -script.src = "https://gaiborjosue.github.io/boostlet/dist/boostlet.min.js"; +// script.src = "https://gaiborjosue.github.io/boostlet/dist/boostlet.min.js"; script.onload = run; document.head.appendChild(script); @@ -12,6 +12,8 @@ async function run() { // detect visualization framework Boostlet.init(); + Boostlet.category = "LLM Models" + const script = document.createElement("script"); script.type = "module"; script.src = "https://mpsych.github.io/cdn/web-llm/web-llm-cdn.js"; diff --git a/src/boostlet.js b/src/boostlet.js index bee8f62..87bff32 100644 --- a/src/boostlet.js +++ b/src/boostlet.js @@ -8,6 +8,7 @@ export class Boostlet { this.framework = null; + this.category = null; } /** @@ -44,6 +45,7 @@ export class Boostlet { } + } /** @@ -138,5 +140,5 @@ export class Boostlet { return Util.hint(message, duration); } - + }