class Eclaircir::Model
Public Instance Methods
predict_outputs(url: nil, input: nil)
click to toggle source
# File lib/eclaircir/api_models/model.rb, line 14 def predict_outputs(url: nil, input: nil) to_predict = if url Input.from_url(url) elsif input input end if Array(to_predict).empty? raise ArgumentError, 'one of the following keyword arguments should be provided [url, input]' end Eclaircir.new_client.predict_outputs(self, to_predict) end