Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use predict.by_url #18

Open
PreciselyAlyss opened this issue Feb 25, 2019 · 0 comments
Open

Unable to use predict.by_url #18

PreciselyAlyss opened this issue Feb 25, 2019 · 0 comments

Comments

@PreciselyAlyss
Copy link

Logs from heroku
2019-02-25T15:25:24.618217+00:00 app[web.1]: 2019-02-25 15:25:24 - ArgumentError - wrong number of arguments (given 0, expected 1):
2019-02-25T15:25:24.618247+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/clarification-0.3.0/lib/clarification/client.rb:14:in predict' 2019-02-25T15:25:24.618250+00:00 app[web.1]: /app/app.rb:38:in block in <top (required)>'

Using this code

Clarification.configure do |config|
   config.api_key = ENV['CLARIFAI_SECRET']
   config.default_public_models = [:general]
end
clar_client = Clarification::Client.new
clar_response = clar_client.predict.by_url("https://i.imgur.com/7lHfzvl.jpg")
 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant