stability_sdk 0.2.4 → 0.2.6

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: ef7bdad79d5b8b0a6be79a50f2a26d66fa3f907a1035be4fe3b26512bb2d5f95
4
- data.tar.gz: 618fa88c26a36f52b5e6a4f75bd46b7060b09e2e85e49dc13a802c3139ed8277
3
+ metadata.gz: 81079c9fb4e28945d59ed682205c0404d5d26df6712747a78f6fdce672573046
4
+ data.tar.gz: 56fe2bc98e3a71a2f14f75628281837f2fe7d2bcc350161f1676d450861da2db
5
5
  SHA512:
6
- metadata.gz: cff3f2786098d254d5c24f263895bcfeac39e1e07e1d50a041cae5cdf95d8b80e07a1294f1d43211fc304a05fc15f890b2542d5a0f1c0198626053c76a5f9f07
7
- data.tar.gz: a15e2e10665fd4fed95f5417633a53c6f6c5f55caeeb5d40f8eb7239c66d3b922d99880685d9debb376895989478a46bd4f6ad0c1eccf8d5446a072e3f0e1566
6
+ metadata.gz: 0e1778effd5d0042e07d0fdd371cde67c8ba6008ad7a2a1c661aff784fad2b33cb2603af322fa80e4d897b9950ad8cd31286308246772f150bde05b1395c23d5
7
+ data.tar.gz: ea0a7f96144d477ee4051cfb123dcd640e20233ac291d2fee1ce6b89b191f886060ee7651836a5ef0f513e640a44e978c94124096420d41da563201ecdec435e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stability_sdk (0.2.4)
4
+ stability_sdk (0.2.6)
5
5
  grpc (>= 1.0.0)
6
6
  mime-types (>= 3.0.0)
7
7
 
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Kosei Moriyama
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -42,7 +42,7 @@ module StabilitySDK
42
42
  def generate(prompt, options, &block)
43
43
  width = options.has_key?(:width) ? options[:width].to_i : DEFAULT_IMAGE_WIDTH
44
44
  height = options.has_key?(:height) ? options[:height].to_i : DEFAULT_IMAGE_HEIGHT
45
- samples = options.has_key?(:num_samples) ? [:num_samples].to_i : DEFAULT_SAMPLE_SIZE
45
+ samples = options.has_key?(:num_samples) ? options[:num_samples].to_i : DEFAULT_SAMPLE_SIZE
46
46
  steps = options.has_key?(:steps) ? options[:steps].to_i : DEFAULT_STEPS
47
47
  seed = options.has_key?(:seed) ? [options[:seed].to_i] : [rand(4294967295)]
48
48
  transform = Gooseai::TransformType.new(
@@ -1,3 +1,3 @@
1
1
  module StabilitySDK
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stability_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosei Moriyama
@@ -66,6 +66,7 @@ files:
66
66
  - ".travis.yml"
67
67
  - Gemfile
68
68
  - Gemfile.lock
69
+ - LICENSE
69
70
  - README.md
70
71
  - Rakefile
71
72
  - bin/console