huggingface/transformers.js

Error: Unknown Feature Extractor type: PyAnnoteFeatureExtractor

Opened this issue · 1 comments

System Info

version: 2.17.2
browser: brave
JS library: vite

Environment/Platform

  • Website/web-app
  • Browser extension
  • Server-side (e.g., Node.js, Deno, Bun)
  • Desktop app (e.g., Electron)
  • Other (e.g., VSCode extension)

Description

I am trying to run this example locally. Initially I was getting issues with the transformer.js version so I changed it to the latest version. I am getting the following error message in the browser console.

Uncaught (in promise) Error: Unknown Feature Extractor type: PyAnnoteFeatureExtractor
    at AutoProcessor.from_pretrained (http://localhost:5173/node_modules/.vite/deps/@xenova_transformers.js?v=f17fc377:27905:15)
    at async Promise.all (index 1)
    at async load (http://localhost:5173/src/worker.js?worker_file&type=module:59:71)

Reproduction

  1. Clone the repo

git clone https://huggingface.co/spaces/Xenova/whisper-speaker-diarization

  1. Change the transformer.js version to latest ie 2.17.2 in package.json file.
  2. Run the code

npm run dev.

  1. Open localhost:5173 in browser and check the console.

Change the transformer.js version to latest ie 2.17.2 in package.json file.

Hi there 👋 The latest version of Transformers.js is being released in @huggingface/transformers - can you replace @xenova/transformers with that? We'll be merging #545 soon!