xenova / transformers.js

State-of-the-art Machine Learning for the web. Run 🤗 Transformers directly in your browser, with no need for a server!

Home Page:https://huggingface.co/docs/transformers.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

janwirth opened this issue · 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

  • Website/web-app
  • Browser extension
  • 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