ibm_watson 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3834857c16b6974709d114b4d0093223e322a871c9f961d19d8f47617c20e135
|
4
|
+
data.tar.gz: 90ef6a24e38b40ec0254bf7b13b62851578c20807182371eb42be16a2a92f968
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f14e249f5918715bb65c504206b67a65426c51611360e6f1b5661f6889d44af05345873e94afd680e229ac0cbcb4d02853101f071c3addb23bceb8e172ad3c43
|
7
|
+
data.tar.gz: b31d31588da90ebf7012a335a53537b69cf7f28ea68cd9ff928e388d05aee6b0cdd25eb5a36cc470f0a77c5c5728c4af49ee3e3088c0d229273f6d5132bb31ce
|
data/lib/ibm_watson/version.rb
CHANGED
@@ -140,9 +140,6 @@ module IBMWatson
|
|
140
140
|
images_file = images_file.instance_of?(StringIO) ? HTTP::FormData::File.new(images_file, content_type: mime_type) : HTTP::FormData::File.new(images_file.path, content_type: mime_type)
|
141
141
|
end
|
142
142
|
end
|
143
|
-
threshold = HTTP::FormData::Part.new(threshold, content_type: "text/plain") unless threshold.nil?
|
144
|
-
owners = HTTP::FormData::Part.new(owners, content_type: "text/plain") unless owners.nil?
|
145
|
-
classifier_ids = HTTP::FormData::Part.new(classifier_ids, content_type: "text/plain") unless classifier_ids.nil?
|
146
143
|
method_url = "/v3/classify"
|
147
144
|
response = request(
|
148
145
|
method: "POST",
|
@@ -29,7 +29,7 @@ if !ENV["VISUAL_RECOGNITION_IAM_APIKEY"].nil? && !ENV["VISUAL_RECOGNITION_IAM_UR
|
|
29
29
|
dog_results = @service.classify(
|
30
30
|
images_file: image_file,
|
31
31
|
threshold: "0.1",
|
32
|
-
classifier_ids:
|
32
|
+
classifier_ids: %w[default food]
|
33
33
|
).result
|
34
34
|
refute(dog_results.nil?)
|
35
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ibm_watson
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Max Nussbaum
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|