hugging-face 0.3.0 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -6
- data/README.md +7 -0
- data/lib/hugging_face/base_api.rb +1 -0
- data/lib/hugging_face/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87254803b61e70815598420628a541f28f6ecc63726906c2f894e3cf7f395ca5
|
4
|
+
data.tar.gz: d2659a14f7bef376fa3371a61e471b923fed89ed51ca4d4bbc640eab805ceef4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88ee2dff8c6c5b4d244f6160d3f9f9bcd778b63de5c978528864975a5537fe8932f7d61676f2f01f49bf4512cb5f88a1905c4e36641d715b3391540fe5ed26c5
|
7
|
+
data.tar.gz: a607889a02c800ff8abafd782b97563da26848188e27f670cd75a28056d0cdb8cae4d8cb5b007778a567f528f017ededee765974a9ff7c1285e6130463d4ebd1
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
hugging-face (0.2
|
5
|
-
faraday (~>
|
4
|
+
hugging-face (0.3.2)
|
5
|
+
faraday (~> 1.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
@@ -12,11 +12,11 @@ GEM
|
|
12
12
|
crack (0.4.5)
|
13
13
|
rexml
|
14
14
|
diff-lcs (1.5.0)
|
15
|
-
faraday (2.
|
16
|
-
|
17
|
-
ruby2_keywords
|
18
|
-
faraday-net_http (3.0.2)
|
15
|
+
faraday (1.2.0)
|
16
|
+
multipart-post (>= 1.2, < 3)
|
17
|
+
ruby2_keywords
|
19
18
|
hashdiff (1.0.1)
|
19
|
+
multipart-post (2.3.0)
|
20
20
|
public_suffix (5.0.1)
|
21
21
|
rake (13.0.6)
|
22
22
|
rexml (3.2.5)
|
@@ -41,6 +41,7 @@ GEM
|
|
41
41
|
|
42
42
|
PLATFORMS
|
43
43
|
arm64-darwin-21
|
44
|
+
x86_64-darwin-19
|
44
45
|
x86_64-linux
|
45
46
|
|
46
47
|
DEPENDENCIES
|
data/README.md
CHANGED
@@ -49,6 +49,13 @@ Summarization:
|
|
49
49
|
client.summarization(input: 'The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building, and the tallest structure in Paris. Its base is square, measuring 125 metres (410 ft) on each side. During its construction, the Eiffel Tower surpassed the Washington Monument to become the tallest man-made structure in the world, a title it held for 41 years until the Chrysler Building in New York City was finished in 1930.')
|
50
50
|
```
|
51
51
|
|
52
|
+
Embedding:
|
53
|
+
|
54
|
+
```ruby
|
55
|
+
client.embedding(input: ['How to build a ruby gem?', 'How to install ruby gem?'])
|
56
|
+
```
|
57
|
+
|
58
|
+
|
52
59
|
## Development
|
53
60
|
|
54
61
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/hugging_face/version.rb
CHANGED
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.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Chaplinsky
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
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
|
-
version: '
|
26
|
+
version: '1.0'
|
27
27
|
description: Ruby client for Hugging Face API
|
28
28
|
email:
|
29
29
|
- alchaplinsky@gmail.com
|