hugging-face 0.3.2 → 0.3.4

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: 87254803b61e70815598420628a541f28f6ecc63726906c2f894e3cf7f395ca5
4
- data.tar.gz: d2659a14f7bef376fa3371a61e471b923fed89ed51ca4d4bbc640eab805ceef4
3
+ metadata.gz: 31872110c4674a9058d55762d1b99e07bf39be11dce4c0a6f305c1e757212bae
4
+ data.tar.gz: 6d62ebe730f40224a663317e87e40b3ae541ebe3d2accd860550f3a7456bd11a
5
5
  SHA512:
6
- metadata.gz: 88ee2dff8c6c5b4d244f6160d3f9f9bcd778b63de5c978528864975a5537fe8932f7d61676f2f01f49bf4512cb5f88a1905c4e36641d715b3391540fe5ed26c5
7
- data.tar.gz: a607889a02c800ff8abafd782b97563da26848188e27f670cd75a28056d0cdb8cae4d8cb5b007778a567f528f017ededee765974a9ff7c1285e6130463d4ebd1
6
+ metadata.gz: 511b5b90c79523247bd741c28ed858efdca43c562f8d22cce28333a26ff7fb671ebcc1e4daa7834a0237a9776edd8976527b5342184b661c9de2a6d1ef11bc97
7
+ data.tar.gz: df5da92a276327047ea19ae80c13df1ff6e673c13cf5e90b5bdac0e31a8fc0d747addc995a5af48dd7f8f4913750795797ad05a70da5625b88ec7200c6815685
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hugging-face (0.3.2)
5
- faraday (~> 1.0)
4
+ hugging-face (0.3.4)
5
+ faraday (>= 1.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -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.2"
4
+ VERSION = "0.3.4"
5
5
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hugging-face
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Chaplinsky
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-16 00:00:00.000000000 Z
11
+ date: 2023-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.0'
27
27
  description: Ruby client for Hugging Face API