nlpcloud 1.0.26 → 1.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nlpcloud.rb +8 -0
  3. metadata +7 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a760805d316c66fd4e45b7fe061a85b0fea798da1da42261d462578710c3fe1b
4
- data.tar.gz: 903426e5d75ebcc811369493c9864ae933824476dc60a0573e900e35668800a6
3
+ metadata.gz: 3d5760d1b093c06e3dfc71090ddf07a4975ae30790a0159d47b06b8914ab2b73
4
+ data.tar.gz: dae5c452bef82ccf9cbbe5a4a676a233feb9e0e0a87cf39a4fa413f6dc06376b
5
5
  SHA512:
6
- metadata.gz: 250b393eb22965bd7807e8aa4f87d0a9ae8c1ecabd2f1d627d0713824c2ea0eec83445a630b9012d2a41e8fc103ff144b362321be9e3d08d3c6820afdca1bd64
7
- data.tar.gz: 2d4fead9c8452e021feb97c4fc24f0b664d9113ebdb41191f110b31cffe86fe57eaf51c7de658264d27ba0c229692d5f6b5ea4a6a5f8e4d74314a258d38e6154
6
+ metadata.gz: f113a941498f116f7b7b3b3805c77f92266d397fedad1b7149b8e1bb861889cc9c59f1174cdd04751a5a2ba7cb64b2451195f3ef88308771cdd2f11f6744a7e8
7
+ data.tar.gz: c69b37ea5ea5349574dce811beb037d5dfa218aa447d6c74d3ac3221ab0f2631342ef95556f81cde4fb840d247217e446327a1937b8db5572eec958e3db5a818
data/lib/nlpcloud.rb CHANGED
@@ -136,6 +136,14 @@ module NLPCloud
136
136
  JSON.parse(response.body)
137
137
  end
138
138
 
139
+ def image_generation(text)
140
+ payload = {
141
+ 'text' => text
142
+ }
143
+ response = RestClient.post("#{@root_url}/image-generation", payload.to_json, @headers)
144
+ JSON.parse(response.body)
145
+ end
146
+
139
147
  def intent_classification(text)
140
148
  payload = {
141
149
  'text' => text
metadata CHANGED
@@ -1,23 +1,23 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nlpcloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.26
4
+ version: 1.0.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Salinas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-11 00:00:00.000000000 Z
11
+ date: 2022-08-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'NLP Cloud serves high performance pre-trained or custom models for NER,
14
14
  sentiment-analysis, classification, summarization, paraphrasing, grammar and spelling
15
15
  correction, keywords and keyphrases extraction, chatbot, product description and
16
- ad generation, intent classification, text generation, code generation, blog post
17
- generation, question answering, machine translation, language detection, semantic
18
- similarity, tokenization, POS tagging, embeddings, and dependency parsing. It is
19
- ready for production, served through a REST API. This is the Ruby client for the
20
- API. More details here: https://nlpcloud.io. Documentation: https://docs.nlpcloud.io.'
16
+ ad generation, intent classification, text generation, image generation, code generation,
17
+ blog post generation, question answering, machine translation, language detection,
18
+ semantic similarity, tokenization, POS tagging, embeddings, and dependency parsing.
19
+ It is ready for production, served through a REST API. This is the Ruby client for
20
+ the API. More details here: https://nlpcloud.io. Documentation: https://docs.nlpcloud.io.'
21
21
  email: all@juliensalinas.com
22
22
  executables: []
23
23
  extensions: []