transformers.js
transformers.js copied to clipboard
Xenova/bert-base-multilingual-uncased-sentiment crashes on nextJS
System Info
Latest version of nextJS as per the tutorial: https://huggingface.co/docs/transformers.js/en/tutorials/next#server-side-inference
Environment/Platform
- [X] Website/web-app
- [ ] Browser extension
- [X] Server-side (e.g., Node.js, Deno, Bun)
- [ ] Desktop app (e.g., Electron)
- [ ] Other (e.g., VSCode extension)
Description
It does not seem to be the API timeout, I set the limit to 60s using export const maxDuration = 60;
Reproduction
Follow the tutorial: https://huggingface.co/docs/transformers.js/en/tutorials/next#server-side-inference
change the model to Xenova/bert-base-multilingual-uncased-sentiment