nsfw-rb 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 838fd338320e48d4f77b84038c775218c5e78a90929723c578016eb424bc076f
4
+ data.tar.gz: f966209a7dd50714c1f58ce95a52431586b536e961a761b6ee301e34eefd8ba4
5
+ SHA512:
6
+ metadata.gz: 1d920ac1e2e17cab9c5d26c9e78aec8e0716473174d65423c3feafe81b268f641b3ab5b33ae39ce54e4af2e9b22f68ba9a5bbbbea61cd8e7241b0815c42aa626
7
+ data.tar.gz: dcf80be20760bf517aeac515c4f48b144083f365cc35503050fefac7e7b6f959b43d396f4e60676865b36952a266cfa0e1f1de8cb0a47d55c2a67f6c3dd8788f
@@ -0,0 +1,18 @@
1
+ name: Ruby
2
+
3
+ on: [push,pull_request]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v2
10
+ - name: Set up Ruby
11
+ uses: ruby/setup-ruby@v1
12
+ with:
13
+ ruby-version: 3.0.0
14
+ - name: Run the default task
15
+ run: |
16
+ gem install bundler -v 2.2.3
17
+ bundle install
18
+ bundle exec rake
data/.gitignore ADDED
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+
13
+ # etc
14
+ .DS_Store
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at miles@zim.dev. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in nsfw-rb.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rspec", "~> 3.0"
data/Gemfile.lock ADDED
@@ -0,0 +1,40 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ nsfw-rb (0.1.0)
5
+ mini_magick (~> 4.11)
6
+ onnxruntime (~> 0.6)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ diff-lcs (1.4.4)
12
+ ffi (1.15.0)
13
+ mini_magick (4.11.0)
14
+ onnxruntime (0.6.0)
15
+ ffi
16
+ rake (13.0.3)
17
+ rspec (3.10.0)
18
+ rspec-core (~> 3.10.0)
19
+ rspec-expectations (~> 3.10.0)
20
+ rspec-mocks (~> 3.10.0)
21
+ rspec-core (3.10.1)
22
+ rspec-support (~> 3.10.0)
23
+ rspec-expectations (3.10.1)
24
+ diff-lcs (>= 1.2.0, < 2.0)
25
+ rspec-support (~> 3.10.0)
26
+ rspec-mocks (3.10.2)
27
+ diff-lcs (>= 1.2.0, < 2.0)
28
+ rspec-support (~> 3.10.0)
29
+ rspec-support (3.10.2)
30
+
31
+ PLATFORMS
32
+ x86_64-darwin-20
33
+
34
+ DEPENDENCIES
35
+ nsfw-rb!
36
+ rake (~> 13.0)
37
+ rspec (~> 3.0)
38
+
39
+ BUNDLED WITH
40
+ 2.2.3
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Miles Zimmerman
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,68 @@
1
+ # nsfw-rb
2
+
3
+ WORK IN PROGRESS
4
+
5
+ Port of [nsfwjs](https://github.com/infinitered/nsfwjs) to ruby.
6
+
7
+ This RubyGem utilizes [nsfw_model](https://github.com/GantMan/nsfw_model) tensorlite converted to onnx format for loading in the runtime.
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
12
+
13
+ ```ruby
14
+ gem 'nsfw-rb'
15
+ ```
16
+
17
+ And then execute:
18
+
19
+ $ bundle install
20
+
21
+ Or install it yourself as:
22
+
23
+ $ gem install nsfw-rb
24
+
25
+ ## Usage
26
+
27
+ ```ruby
28
+ require "nsfw-rb"
29
+ ```
30
+
31
+ ```ruby
32
+ NSFW::Image.safe?("/path/to/nsfw.jpg") #=> false
33
+ NSFW::Image.safe?("/path/to/normal.jpg") #=> true
34
+ ```
35
+
36
+ ```ruby
37
+ NSFW::Image.unsafe?("/path/to/nsfw.jpg") #=> true
38
+ NSFW::Image.unsafe?("/path/to/normal.jpg") #=> false
39
+ ```
40
+
41
+ ```ruby
42
+ NSFW::Image.predictions("/path/to/image.jpg") # =>
43
+ # {
44
+ # "porn" => 0.020460745319724083,
45
+ # "sexy" => 0.03264210745692253,
46
+ # "drawings" => 0.0227888785302639,
47
+ # "neutral" => 0.9089052081108093,
48
+ # "hentai" => 0.015203039161860943
49
+ # }
50
+ ```
51
+
52
+ ## Development
53
+
54
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
55
+
56
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
57
+
58
+ ## Contributing
59
+
60
+ Bug reports and pull requests are welcome on GitHub at https://github.com/mileszim/nsfw-rb. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/mileszim/nsfw-rb/blob/master/CODE_OF_CONDUCT.md).
61
+
62
+ ## License
63
+
64
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
65
+
66
+ ## Code of Conduct
67
+
68
+ Everyone interacting in the Nsfw::Rb project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/mileszim/nsfw-rb/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "nsfw"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/lib/nsfw.rb ADDED
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "nsfw/image"
4
+ require_relative "nsfw/model"
5
+ require_relative "nsfw/version"
6
+
7
+ module NSFW
8
+ class Error < StandardError; end
9
+
10
+
11
+ end
data/lib/nsfw/image.rb ADDED
@@ -0,0 +1,96 @@
1
+ require "mini_magick"
2
+ require "tempfile"
3
+ require_relative "model"
4
+
5
+ module NSFW
6
+ class Image
7
+ class << self
8
+ def model
9
+ @_model ||= NSFW::Model.new(lazy: true)
10
+ end
11
+ end
12
+
13
+ DIMENSIONS = "224x224"
14
+ PIXEL_NORMAL = 255
15
+
16
+ attr_accessor :img
17
+
18
+ def initialize(image_path)
19
+ @img = MiniMagick::Image.open(image_path)
20
+ end
21
+
22
+ def self.prepare!(image_path)
23
+ img = new(image_path)
24
+ img.process!
25
+ img
26
+ end
27
+
28
+ def process!
29
+ @img.colorspace("RGB")
30
+ .resize("#{DIMENSIONS}^")
31
+ .crop("#{DIMENSIONS}+0+0","-gravity", "center")
32
+ .write(Tempfile.new.path)
33
+ @img
34
+ end
35
+
36
+ def dimensions
37
+ @img.dimensions
38
+ end
39
+
40
+ def pixels
41
+ @_pixels ||= @img.get_pixels
42
+ end
43
+
44
+ def tensor
45
+ @_normalized_pixels ||= normalize_pixels!(pixels)
46
+ end
47
+
48
+ def self.safe?(image_path)
49
+ img = self.prepare!(image_path)
50
+ model.safe?(img)
51
+ end
52
+
53
+ def self.unsafe?(image_path)
54
+ !self.safe?(image_path)
55
+ end
56
+
57
+ def self.predictions(image_path)
58
+ img = self.prepare!(image_path)
59
+ model.predict(img.tensor)
60
+ end
61
+
62
+ private
63
+
64
+ # Resize to the dimensions needed by the model (244px x 244px)
65
+ def resize!
66
+ @img.resize("#{DIMENSIONS}^")
67
+ end
68
+
69
+ # Crop to 244x244 after resizing
70
+ def crop!
71
+ @img.crop("#{DIMENSIONS}")
72
+ end
73
+
74
+ # Save to tmpfile
75
+ def stash!
76
+ @img.write()
77
+ end
78
+
79
+ # Normalize pixels between 0-1
80
+ def normalize_pixels!(pixel_tensor)
81
+ if pixel_tensor.is_a?(Integer)
82
+ return pixel_tensor.to_f/PIXEL_NORMAL.to_f
83
+ else
84
+ return pixel_tensor.map{ |a| normalize_pixels!(a) }
85
+ end
86
+
87
+ # tensor.map do |i|
88
+ # i.map do |j|
89
+ # j.map do |k|
90
+ # k.to_f / 255.0
91
+ # end
92
+ # end
93
+ # end
94
+ end
95
+ end
96
+ end
data/lib/nsfw/model.rb ADDED
@@ -0,0 +1,49 @@
1
+ require "onnxruntime"
2
+
3
+ module NSFW
4
+ class Model
5
+ MODEL_PATH = "vendor/onnx_models/nsfw.onnx"
6
+ CATEGORIES = ['drawings', 'hentai', 'neutral', 'porn', 'sexy']
7
+ SAFETY_THRESHOLD = 0.85
8
+
9
+ attr_reader :model
10
+
11
+ def initialize(lazy: false)
12
+ load_model! unless lazy
13
+ end
14
+
15
+ def predict(tensor)
16
+ prediction = make_prediction(tensor)
17
+ format_prediction(prediction)
18
+ end
19
+
20
+ def safe?(image)
21
+ prediction = predict(image.tensor)
22
+ prediction["neutral"] >= SAFETY_THRESHOLD
23
+ end
24
+
25
+ def loaded?
26
+ !@model.nil?
27
+ end
28
+
29
+ def reshape_tensor(tensor)
30
+ OnnxRuntime::Utils.reshape(tensor, [1, 224, 224, 3])
31
+ end
32
+
33
+ private
34
+
35
+ def load_model!
36
+ @model ||= OnnxRuntime::Model.new(MODEL_PATH)
37
+ end
38
+
39
+ def make_prediction(tensor)
40
+ load_model! unless loaded?
41
+ @model.predict({ "input" => reshape_tensor(tensor) })
42
+ end
43
+
44
+ def format_prediction(prediction)
45
+ results = prediction.fetch("Identity").first
46
+ CATEGORIES.zip(results).sort{|a,b| b.last - a.last }.to_h
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module NSFW
4
+ VERSION = "0.1.0"
5
+ end
data/nsfw-rb.gemspec ADDED
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/nsfw/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "nsfw-rb"
7
+ spec.version = NSFW::VERSION
8
+ spec.authors = ["Miles Zimmerman"]
9
+ spec.email = ["miles@zim.dev"]
10
+
11
+ spec.summary = "Detect NSFW images quickly using a pre-trained model ported from nsfwjs"
12
+ spec.description = "Detect NSFW images quickly using a pre-trained model ported from nsfwjs"
13
+ spec.homepage = "https://github.com/mileszim/nsfw-rb"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
16
+
17
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
18
+
19
+ spec.metadata["homepage_uri"] = spec.homepage
20
+ spec.metadata["source_code_uri"] = "https://github.com/mileszim/nsfw-rb"
21
+ spec.metadata["changelog_uri"] = "https://github.com/mileszim/nsfw-rb/blob/master/CHANGELOG.md"
22
+
23
+ # Specify which files should be added to the gem when it is released.
24
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
26
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
27
+ end
28
+ spec.bindir = "exe"
29
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ["lib"]
31
+
32
+ # Uncomment to register a new dependency of your gem
33
+ # spec.add_dependency "image_processing", "~> 1"
34
+ spec.add_dependency "mini_magick", "~> 4.11"
35
+ spec.add_dependency "onnxruntime", "~> 0.6"
36
+
37
+ # For more information and examples about making a new gem, checkout our
38
+ # guide at: https://bundler.io/guides/creating_gem.html
39
+ end
Binary file
metadata ADDED
@@ -0,0 +1,92 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nsfw-rb
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Miles Zimmerman
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-04-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: mini_magick
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.11'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: onnxruntime
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.6'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.6'
41
+ description: Detect NSFW images quickly using a pre-trained model ported from nsfwjs
42
+ email:
43
+ - miles@zim.dev
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".github/workflows/main.yml"
49
+ - ".gitignore"
50
+ - ".rspec"
51
+ - CODE_OF_CONDUCT.md
52
+ - Gemfile
53
+ - Gemfile.lock
54
+ - LICENSE.txt
55
+ - README.md
56
+ - Rakefile
57
+ - bin/console
58
+ - bin/setup
59
+ - lib/nsfw.rb
60
+ - lib/nsfw/image.rb
61
+ - lib/nsfw/model.rb
62
+ - lib/nsfw/version.rb
63
+ - nsfw-rb.gemspec
64
+ - vendor/onnx_models/nsfw.onnx
65
+ homepage: https://github.com/mileszim/nsfw-rb
66
+ licenses:
67
+ - MIT
68
+ metadata:
69
+ allowed_push_host: https://rubygems.org
70
+ homepage_uri: https://github.com/mileszim/nsfw-rb
71
+ source_code_uri: https://github.com/mileszim/nsfw-rb
72
+ changelog_uri: https://github.com/mileszim/nsfw-rb/blob/master/CHANGELOG.md
73
+ post_install_message:
74
+ rdoc_options: []
75
+ require_paths:
76
+ - lib
77
+ required_ruby_version: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: 2.3.0
82
+ required_rubygems_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ requirements: []
88
+ rubygems_version: 3.2.3
89
+ signing_key:
90
+ specification_version: 4
91
+ summary: Detect NSFW images quickly using a pre-trained model ported from nsfwjs
92
+ test_files: []