huggingface / transformers.js

State-of-the-art Machine Learning for the web. Run 🤗 Transformers directly in your browser, with no need for a server!
https://huggingface.co/docs/transformers.js
Apache License 2.0
12.09k stars 765 forks source link

Error: Unknown Feature Extractor type: PyAnnoteFeatureExtractor #974

Open yolossn opened 1 month ago

yolossn commented 1 month ago

System Info

version: 2.17.2 browser: brave JS library: vite

Environment/Platform

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

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

    npm run dev.

  4. Open localhost:5173 in browser and check the console.
xenova commented 1 month ago

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!