hugging-face 0.3.1 → 0.3.3

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: 9b9591169889f3b463224dade2fa11e63bba1733d6e09ebb814e9e9e1d5bad14
4
- data.tar.gz: 521110a79c57838d68aff92db3212358bcda75484b55a78c92ea46272fbc41d2
3
+ metadata.gz: 8b1fd1e517f21466be454d55dcc88e0344acaa6fd91900335615f632b734595e
4
+ data.tar.gz: c865080f1350cc0e056f0ff190b6c99373cc32a287bb9c0e558ce777456ca057
5
5
  SHA512:
6
- metadata.gz: 9940b1ec90fdb03631d3318f1f12bf6431132166d97adbb9e3e962f6acf7e2150982da478129cee4c2d2bb4bdb973f9dda2b7e837c4722ad2d9b09d122205172
7
- data.tar.gz: 4d9076507fcc8b3f6829aeb34d462fda23a317b8b2009a94be73cceb33b255f871ece5a0d0b41a832b743b4c26e7aa6af9d589f0eb3c112b96d4760ac56434b4
6
+ metadata.gz: 803618ef477824cafbf3b5d37e76d3bcfcc6b9cfd90632e55df733f9b7f14d7ef6e4d5403ce9f1828f6459ee32b511783c2d8f3217caf7ba3ee87123f0372754
7
+ data.tar.gz: 62cfb9bb3f0f6905f9963d7997b7deecabdda75a0771f8625604bde1dd7c883ab76bc43e811355b99f26428d0ae84397deb1a5741824fa3c32fcd0e80fa6cc1c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hugging-face (0.3.1)
4
+ hugging-face (0.3.3)
5
5
  faraday (~> 1.0)
6
6
 
7
7
  GEM
@@ -1,3 +1,4 @@
1
+ require 'json'
1
2
  require 'logger'
2
3
  require 'faraday'
3
4
 
@@ -29,8 +29,8 @@ module HuggingFace
29
29
  request connection: connection(model), input: { inputs: input }
30
30
  end
31
31
 
32
- def embedding(input:)
33
- request connection: connection(EMBEDING_MODEL), input: { inputs: input }
32
+ def embedding(input:, model: EMBEDING_MODEL)
33
+ request connection: connection(model), input: { inputs: input }
34
34
  end
35
35
 
36
36
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HuggingFace
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hugging-face
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Chaplinsky