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
11.62k stars 716 forks source link

v3 fails on Cloudflare Workers due to Webpack publicPath missing #926

Open vtempest opened 1 month ago

vtempest commented 1 month ago

System Info

Automatic publicPath is not supported in this browser

https://stackoverflow.com/questions/68115467/error-automatic-publicpath-is-not-supported-in-this-browser-when-i-am-running-m Just add: output: { publicPath: '', ... },

"@huggingface/transformers": "^3.0.0-alpha.14",

Environment/Platform

Description

Automatic publicPath is not supported in this browser

Reproduction

import { pipeline } from "@huggingface/transformers/" in cfw

https://developers.cloudflare.com/workers/wrangler/migration/v1-to-v2/wrangler-legacy/webpack/#example-with-webpack-plugin

nnennajohn commented 1 month ago

Also encountering this error. Any status on this? Thank you.