Jordan
Jordan
same error in my project ```0|Cybers Cafe | TypeError: fetch failed 0|Cybers Cafe | at Object.fetch (node:internal/deps/undici/undici:11600:11) 0|Cybers Cafe | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { 0|Cybers Cafe | cause: Error: getaddrinfo...
im using nsfwjs ^2.4.2 in npm
wish i could serve whatever model files are needed from my own server, not have external dependencies. i was unaware of that when i installed it
@GantMan @Madriix Thank you for resolving this so quickly. This is a real enabler for my project. Will try this tomorrow
when i run it from node.js, like this: ``` const nsfw = require('nsfwjs') await nsfw.load('file://../nsfwjs/model/'); ``` i get the error: ``` 0|Cybers Cafe | TypeError: fetch failed 0|Cybers Cafe |...
It's fetch... [https://stackoverflow.com/questions/74769009/fetch-local-files-with-node-js](https://stackoverflow.com/questions/74769009/fetch-local-files-with-node-js) guess i'll just host the files for the host itself to use... in the future maybe use fs module
@GantMan i got it working reading locally. heres the code (node.js): ``` const tf = require('@tensorflow/tfjs-node'); const nsfw = require('nsfwjs') let nsfwModel = null; async function getNsfwModel () { if...