State-of-the-art Machine Learning for the web. Run 🤗 Transformers directly in your browser, with no need for a server!
11.62k
stars
716
forks
source link
v3 fails on Cloudflare Workers due to Webpack publicPath missing #926
Open
vtempest opened 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: '', ... },
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