Project

clarinet

0.0
No commit activity in last 3 years
No release in over 3 years
Simple client to interface with the Clarifai API v2
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.14
 Project Readme

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')