replicate-api 0.1.2 → 0.1.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bdc195548bd20d60b90ad926efc9a045dabf09f932b9a5a41ee693b394cce59c
4
- data.tar.gz: 1058816a27e6fcdbe4853df7d2bb4c102ddaee92933e6b00309dbcd4b8a463d2
3
+ metadata.gz: a596e76f9ab64a522810b88fa4d816f4e3e465938ae9601a9d349c9e4d35bfef
4
+ data.tar.gz: 191eca1fd5545dea9127146d36f0aabe8c2ebf552a5647c2a4e43791f46729b7
5
5
  SHA512:
6
- metadata.gz: e35c8e77c74981fb177a8b325ba36658eee0195163166773697fb1d3c6133ccac29af72f14b1891575687d6a1c5040a98ee0e2e8f8a1027cdf5843bdb67757ab
7
- data.tar.gz: 0f04b274aee7be57ab8f266cb87c5daacf83ef8581310afca9d4b416d1077e138d2766b9b57cf267f3a72058ad058e36c225f0ddfddf06379a5ec48b33593998
6
+ metadata.gz: 93e354f2cd6dcf5897d5222a0438c04c726a3c0e0d9eb9b6f83c5a5e543b3fe2ce04ca78470a3469de9369f2e5d2b3747b7007cf7aa5107dd26ae03ef3800ee9
7
+ data.tar.gz: 58b2128c462a265cc7a65ec98b7ece9c43d6e25b354a7b39a9bd256a4b043e5884b6ec600b4fbb281d9c4bccaca18aa09c72a5b7c40fd9aab7b468a9f13215be
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- replicate-api (0.1.0)
4
+ replicate-api (0.1.2)
5
5
  faraday (~> 2.7.1)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -25,7 +25,7 @@ Or install it yourself as:
25
25
  You can run a model and get its output:
26
26
 
27
27
  ```ruby
28
- replicate = Replicate::Client.new(api_key: "#{YOUR API KEY HERE}")
28
+ replicate = Replicate::Client.new(token: "#{YOUR API KEY HERE}")
29
29
  model = replicate.models("stability-ai/stable-diffusion")
30
30
  model.predict(prompt="a 19th century portrait of a wombat gentleman")
31
31
  ```
@@ -9,7 +9,7 @@ module Replicate
9
9
  @version_id = response.body["latest_version"]["id"]
10
10
  end
11
11
 
12
- def predict(prompt:, height = 512, width = 512)
12
+ def predict(prompt, height=512, width=512)
13
13
  body = {version: @version_id, input: {prompt: prompt, height: height, width: width}}
14
14
  response = @client.requests(method: "POST", path: "predictions", **body)
15
15
  poll(prediction_id: response.body["id"])
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Replicate
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: replicate-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olivia Li