infinitered / nsfwjs

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

missing dist/nsfwjs.min.js #482

Closed cs4n closed 3 years ago

cs4n commented 3 years ago

Hi

I'm trying to POC and make some demo offline. First thing i can't find is the dist folder, 100% i missed something :)

Thanks your help in advance!

GantMan commented 3 years ago

hey hey! When you do offline, how are you doing it?

This will help me help you :)

cs4n commented 3 years ago

Hey :) Sorry for lack of the proper description :) Yesterday donwloaded the code package from git. Unzipped then copied to the project.

And now is the moment i totally confused :D Yesterday the unzipped folder didn't contain the dist filder (in win folder), whilst now the opened project(visual studio) contains but set exclude from the project (partially ok). One thing i still can't find is the mentioned nsfwjs.min.js file.

Thanks your help in advance, and sorry for the "newby" issues :)

GantMan commented 3 years ago

So this project is using Typescript. Typescript is not naturally readable by most systems, so there's a typescipt compile step where the source is compiled to a /dist folder.

When grabbing this code from source, you'll need to compile a nsfwjs.min.js or you can access the one that has been compiled and sent off to NPM or other CDNs.

What is the structure of your project?

cs4n commented 3 years ago

Unfortunately we are not using typescript, i think i wont be able to compile it, regarding to our system limits. Project structure is C# MVC. Can you advice a save place to donwload it from, any CDN or NPM you mentioned?

GantMan commented 3 years ago

You can get the file from https://unpkg.com/nsfwjs@2.3.0 which is the CDN.

cs4n commented 3 years ago

Awesome thanks (and for your patinece too :) )!

GantMan commented 3 years ago

No problem! I would love to hear how it all works out.

cs4n commented 3 years ago

The only thing was to understand that the response array changing by the values and percentages. Over this, i already implemented it, and working like a charm! :)