You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there 👋 This should have been fixed in @huggingface/transformers. Can you provide the error log for that (the ones shown above are for @xenova/transformers)?
Note: You must uninstall @xenova/transformers and replace all imports of @xenova/transformers with @huggingface/transformers
Thanks Xenova. I will try again. The model wasn't working with @huggingface/transformers.
ERROR in ./node_modules/@huggingface/transformers/dist/transformers.js 42679:34-64
Module not found: Error: Can't resolve './' in '/home/code/node_modules/@huggingface/transformers/dist'
webpack compiled with 1 error and 1 warning
System Info
Environment/Platform
Description
Unexpected token '<', "<!doctype "... is not valid JSON
SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
at JSON.parse ()
at getModelJSON (http://localhost:3025/static/js/vendors-node_modules_xenova_transformers_src_models_js-node_modules_xenova_transformers_src_t-98979f.chunk.js:35589:15)
at async Promise.all (index 0)
at async loadTokenizer (http://localhost:3025/static/js/vendors-node_modules_xenova_transformers_src_models_js-node_modules_xenova_transformers_src_t-98979f.chunk.js:28435:16)
at async AutoTokenizer.from_pretrained (http://localhost:3025/static/js/vendors-node_modules_xenova_transformers_src_models_js-node_modules_xenova_transformers_src_t-98979f.chunk.js:32349:46)
at async Promise.all (index 0)
at async loadItems (http://localhost:3025/static/js/vendors-node_modules_xenova_transformers_src_models_js-node_modules_xenova_transformers_src_t-98979f.chunk.js:26304:3)
at async pipeline (http://localhost:3025/static/js/vendors-node_modules_xenova_transformers_src_models_js-node_modules_xenova_transformers_src_t-98979f.chunk.js:26249:19)
at async testModel (http://localhost:3025/static/js/bundle.js:39226:18)
Reproduction
Tried with
@xenova/transformers
too and then tried with@huggingface/transformers
.The text was updated successfully, but these errors were encountered: