transformers.js icon indicating copy to clipboard operation
transformers.js copied to clipboard

Xenova/bert-base-multilingual-uncased-sentiment crashes on nextJS

Open janwirth opened this issue 1 year ago • 0 comments

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

image

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

janwirth avatar Apr 26 '24 12:04 janwirth