runapi-omnihuman 0.2.12 → 0.3.0

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: a7412b98170e2fa210e157c3a42aef4b38bc75273633f437409a8c8ea7634df9
4
- data.tar.gz: 448ddee479b87cb35c39ab81d9997b14fe3aab53261397eafa9b2a39592c4a2a
3
+ metadata.gz: 98891677db45d0c33e05367862876dd5abae5a45eb2582bfbfdd429d4d28c998
4
+ data.tar.gz: 3e48dd0b4ccb7f1aa3b9b2838ad152e4614bee78d360e8d87fae299b291d9700
5
5
  SHA512:
6
- metadata.gz: 2c8891da93bda35f65f39083f8e273560764ce82ab7808a0aabe63326477c62b6c0d9dc738849c80a3da729f75aa1930269b8dc999b210c8a6ddbb9468c9caa9
7
- data.tar.gz: e9bfac06caa517465a8d46195cde983832e9356ec0783fd4d5ad357fc2ad5d7ed60cc31555e8464b1bc84c9c0dac7afcd5b8001b5301810434ebff21b0c82f7d
6
+ metadata.gz: 10c6956a88fe59ec20d6b1a2a23597277cce0b2956efd032b39ae69b610c2cc78e49bc837c385affbcce057810ae375da95445bfff8a1fb5858bb7cba822238e
7
+ data.tar.gz: 1652e3caef3fa804eb7de8ce4ce33b14c557884cd04103c0cba0342cecea36a453f98b8c665cb1ecaa28d8dc20a71c8b386811db616d3af9873e1df80e8de34a
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- validate_contract!(CONTRACT["audio-to-video"], params)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -22,7 +22,6 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_contract!(CONTRACT["human-identification"], params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
@@ -22,7 +22,6 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_contract!(CONTRACT["subject-detection"], params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
@@ -2,7 +2,6 @@
2
2
 
3
3
  require "runapi/core"
4
4
  require_relative "omnihuman/types"
5
- require_relative "omnihuman/contract_gen"
6
5
  require_relative "omnihuman/resources/audio_to_video"
7
6
  require_relative "omnihuman/resources/human_identification"
8
7
  require_relative "omnihuman/resources/subject_detection"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runapi-omnihuman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.12
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - RunAPI
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: 0.4.0
18
+ version: 0.6.0
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: 0.4.0
25
+ version: 0.6.0
26
26
  description: The OmniHuman Ruby SDK is the language-specific package for OmniHuman
27
27
  on RunAPI. Use this package for audio-driven talking-head video generation, human
28
28
  identification, and subject-mask detection when your application needs request bodies,
@@ -39,7 +39,6 @@ files:
39
39
  - lib/runapi-omnihuman.rb
40
40
  - lib/runapi/omnihuman.rb
41
41
  - lib/runapi/omnihuman/client.rb
42
- - lib/runapi/omnihuman/contract_gen.rb
43
42
  - lib/runapi/omnihuman/resources/audio_to_video.rb
44
43
  - lib/runapi/omnihuman/resources/human_identification.rb
45
44
  - lib/runapi/omnihuman/resources/subject_detection.rb
@@ -68,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
67
  - !ruby/object:Gem::Version
69
68
  version: '0'
70
69
  requirements: []
71
- rubygems_version: 4.0.10
70
+ rubygems_version: 3.6.9
72
71
  specification_version: 4
73
72
  summary: OmniHuman Ruby SDK for RunAPI
74
73
  test_files: []
@@ -1,54 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RunApi
4
- module Omnihuman
5
- CONTRACT = {
6
- "audio-to-video" => {
7
- "models" => ["omnihuman-1.5"],
8
- "fields_by_model" => {
9
- "omnihuman-1.5" => {
10
- "mask_urls" => {
11
- "max_items" => 5
12
- },
13
- "output_resolution" => {
14
- "enum" => ["720p", "1080p"]
15
- },
16
- "prompt" => {
17
- "max" => 300,
18
- "length" => true
19
- },
20
- "seed" => {
21
- "type" => "integer"
22
- },
23
- "source_audio_url" => {
24
- "required" => true
25
- },
26
- "source_image_url" => {
27
- "required" => true
28
- }
29
- }
30
- }
31
- },
32
- "human-identification" => {
33
- "models" => ["omnihuman-1.5-human-identification"],
34
- "fields_by_model" => {
35
- "omnihuman-1.5-human-identification" => {
36
- "source_image_url" => {
37
- "required" => true
38
- }
39
- }
40
- }
41
- },
42
- "subject-detection" => {
43
- "models" => ["omnihuman-1.5-subject-detection"],
44
- "fields_by_model" => {
45
- "omnihuman-1.5-subject-detection" => {
46
- "source_image_url" => {
47
- "required" => true
48
- }
49
- }
50
- }
51
- }
52
- }.freeze
53
- end
54
- end