8000 GitHub - tophattom/clarinet: Ruby client for Clarifai API v2
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tophattom/clarinet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clarinet Build Status

Ruby client for Clarifai API v2.

Clarinet matches Clarifai's official JavaScript SDK almost 1:1. Method names are mostly the same expect in snake_case as opposed to camelCase in the JS library.

Dependencies

  • addressable
  • httparty

Install

Usage

# Your client ID and secret
api_key = '...'

# Initialize
client = Clarinet::App.new api_key

# Get predictions for image with URL.
# Response keys are symbolized.
outputs = client.models.predict(Clarinet::Model::GENERAL, 'https://samples.clarifai.com/metro-north.jpg')

About

Ruby client for Clarifai API v2

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0