Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Unknown Feature Extractor type: PyAnnoteFeatureExtractor #974

Open
1 of 5 tasks
yolossn opened this issue Oct 14, 2024 · 1 comment
Open
1 of 5 tasks

Error: Unknown Feature Extractor type: PyAnnoteFeatureExtractor #974

yolossn opened this issue Oct 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@yolossn
Copy link

yolossn commented Oct 14, 2024

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.
@yolossn yolossn added the bug Something isn't working label Oct 14, 2024
@xenova
Copy link
Collaborator

xenova commented Oct 14, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants