Last active
August 29, 2015 14:03
-
-
Save nickjacob/5044eaf1c76c8cd79641 to your computer and use it in GitHub Desktop.
mirador api usage example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'mirador' | |
mc = Mirador::Client.new('your_key_here') | |
mc.classify_files('bathing-suit.jpg', 'nsfw-user-upload.png').each do |result| | |
puts "#{ result.name }: #{ (result.safe and 'is' or 'is not' } safe" | |
end | |
mc.classify_urls('http://possibly-nsfw.com/cool.png').each do |result| | |
puts "#{ result.name }: #{ (result.safe and 'is' or 'is not' } safe" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment