The "path" argument must be of type string or an instance of URL. Received undefined #916
Open
1 of 5 tasks
Labels
bug
Something isn't working
System Info
"@xenova/transformers": "^2.17.2"
Electron (Obsidian.md)
Environment/Platform
Description
I am trying to build an obsidian.md plugin, where I want to load a local model (or hosted on huggingface is fine too) using transformer.js. I went through several issues.
The "path" argument must be of type string or an instance of URL. Received undefined
.Not sure if its a pure transformer.js or it is caused something by changing the target build.
Code in question:
I also tried other pipeline value like below, but the error is still the same:
Reproduction
const classifier = await pipeline('sentiment-analysis'); const output = await classifier('I love transformers!');
inMyPlugin
class.The text was updated successfully, but these errors were encountered: