-
Notifications
You must be signed in to change notification settings - Fork 917
error when initializing a pipeline #1296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi there 👋 can you upgrade to |
Thanks. I figured out why the cached files are from vue index.html. I need to setup vite.config.js to make vite serve 404 rather than the default index.html. Then it works. So this is not a bug, but it requires some special config to vite server. Anyway I will try out the v3 version. |
I have the same problem. ![]() In this sample, |
You may need to refresh your caches after upgrading, which you can do by opening dev tools -> Application -> Cache storage -> right click on "transformers-cache" and delete. |
I deleted the "transformers-cache" and was successful! |
System Info
@xenova/transformers@2.17.2
chrome 135
macos 15.4
Environment/Platform
Description
In a simple vue3 + vite app to just try out the transformers.js translation pipeline, I have this code to init pipeline:
When I run it (clicking a button from page), I got an error:
Tracing the code, jsonData in getModelJSON() returns the following which in not correct:
'<!doctype html>
<script type="module" src="/@vite/client"></script>I checked the chrome cache from devtools:
all three cached files have length of 430, which looks like the jsonData above. Not sure how these files got in the cache there.
Reproduction
The text was updated successfully, but these errors were encountered: