infinitered / nsfwjs

NSFW detection on the client-side via TensorFlow.js
https://nsfwjs.com/
MIT License
7.94k stars 529 forks source link

Removing console.log #882

Closed castilloedwin closed 3 days ago

castilloedwin commented 2 weeks ago

Hey team good afternoon, is there a way to remove the console.log which is displayed when you call the nsfwjs.load function?

GantMan commented 2 weeks ago

hey hey! Do you mean this warning when you're using the default model and not the hosted one?

https://github.com/infinitered/nsfwjs/blob/master/src/index.ts#L139

castilloedwin commented 6 days ago

Yeah that one @GantMan

GantMan commented 5 days ago

So we want to keep that warning. That message only displays if you are using the FREE model that we host. To remove it, host your own copy of the model as specified in the Readme.

https://github.com/infinitered/nsfwjs?tab=readme-ov-file#host-your-own-model

castilloedwin commented 3 days ago

Thanks @GantMan I'll do that