nuxt-module-essentia 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,9 @@
1
1
  # nuxt-module-essentia
2
+ ![NPM Downloads](https://img.shields.io/npm/dm/nuxt-module-essentia)
3
+ [![GitHub stars](https://img.shields.io/github/stars/nikitakashin/nuxt-module-essentia)](https://github.com/nikitakashin/nuxt-module-essentia/stargazers)
4
+ ![NPM Version](https://img.shields.io/npm/v/nuxt-module-essentia)
5
+ [![Nuxt 3 compatible](https://img.shields.io/badge/Nuxt%203-Compatible-42b883.svg?logo=nuxt&logoColor=white)](https://nuxt.com)
6
+ [![Nuxt 4 Ready](https://img.shields.io/badge/Nuxt%204-Ready-00DC82.svg?logo=nuxt&logoColor=white)](https://nuxt.com)
2
7
 
3
8
  Nuxt модуль для интеграции Essentia.js WASM библиотеки анализа аудио.
4
9
  Работает на Nuxt 3 и 4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-module-essentia",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Nuxt module for Essentia WASM integration",
5
5
  "type": "module",
6
6
  "main": "./dist/module.js",
@@ -9,7 +9,7 @@ const extractor = new EssentiaModel.EssentiaTFInputExtractor(EssentiaWASM, "musi
9
9
  let modelStart = 0;
10
10
 
11
11
  let model;
12
- let modelURL = "/models/msd-musicnn-1/model.json";
12
+ let modelURL = "../models/msd-musicnn-1/model.json";
13
13
  let modelLoaded = false;
14
14
  let modelReady = false;
15
15
 
@@ -59,7 +59,6 @@ async function initTensorflowWASM() {
59
59
  if (defaultBackend != "wasm") {
60
60
  return;
61
61
  importScripts("./lib/tf-backend-wasm-3.5.0.js");
62
- // importScripts('https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-wasm/dist/tf-backend-wasm.js');
63
62
  tf.setBackend("wasm");
64
63
  tf.ready()
65
64
  .then(() => {