magic_hour 0.41.0__py3-none-any.whl → 0.41.1__py3-none-any.whl

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.

Potentially problematic release.


This version of magic_hour might be problematic. Click here for more details.

@@ -40,6 +40,9 @@ res = client.v1.lip_sync.generate(
40
40
  "video_file_path": "/path/to/1234.mp4",
41
41
  "video_source": "file",
42
42
  },
43
+ style={
44
+ "generation_mode": "lite",
45
+ },
43
46
  end_seconds=15.0,
44
47
  start_seconds=0.0,
45
48
  max_fps_limit=12.0,
@@ -63,6 +66,9 @@ res = await client.v1.lip_sync.generate(
63
66
  "video_file_path": "/path/to/1234.mp4",
64
67
  "video_source": "file",
65
68
  },
69
+ style={
70
+ "generation_mode": "lite",
71
+ },
66
72
  end_seconds=15.0,
67
73
  start_seconds=0.0,
68
74
  max_fps_limit=12.0,
@@ -114,6 +120,9 @@ res = client.v1.lip_sync.create(
114
120
  "video_file_path": "api-assets/id/1234.mp4",
115
121
  "video_source": "file",
116
122
  },
123
+ style={
124
+ "generation_mode": "lite",
125
+ },
117
126
  end_seconds=15.0,
118
127
  start_seconds=0.0,
119
128
  max_fps_limit=12.0,
@@ -135,6 +144,9 @@ res = await client.v1.lip_sync.create(
135
144
  "video_file_path": "api-assets/id/1234.mp4",
136
145
  "video_source": "file",
137
146
  },
147
+ style={
148
+ "generation_mode": "lite",
149
+ },
138
150
  end_seconds=15.0,
139
151
  start_seconds=0.0,
140
152
  max_fps_limit=12.0,
@@ -39,6 +39,9 @@ class LipSyncClient:
39
39
  name: typing.Union[
40
40
  typing.Optional[str], type_utils.NotGiven
41
41
  ] = type_utils.NOT_GIVEN,
42
+ style: typing.Union[
43
+ typing.Optional[params.V1LipSyncCreateBodyStyle], type_utils.NotGiven
44
+ ] = type_utils.NOT_GIVEN,
42
45
  width: typing.Union[
43
46
  typing.Optional[int], type_utils.NotGiven
44
47
  ] = type_utils.NOT_GIVEN,
@@ -56,6 +59,7 @@ class LipSyncClient:
56
59
  height: `height` is deprecated and no longer influences the output video's resolution.
57
60
  max_fps_limit: Defines the maximum FPS (frames per second) for the output video. If the input video's FPS is lower than this limit, the output video will retain the input FPS. This is useful for reducing unnecessary frame usage in scenarios where high FPS is not required.
58
61
  name: The name of video. This value is mainly used for your own identification of the video.
62
+ style: Attributes used to dictate the style of the output
59
63
  width: `width` is deprecated and no longer influences the output video's resolution.
60
64
  assets: Provide the assets for lip-sync. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
61
65
  end_seconds: The end time of the input video in seconds. This value is used to trim the input video. The value must be greater than 0.1, and more than the start_seconds.
@@ -108,6 +112,7 @@ class LipSyncClient:
108
112
  height=height,
109
113
  max_fps_limit=max_fps_limit,
110
114
  name=name,
115
+ style=style,
111
116
  width=width,
112
117
  request_options=request_options,
113
118
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: magic_hour
3
- Version: 0.41.0
3
+ Version: 0.41.1
4
4
  Summary: Python SDK for Magic Hour API
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Programming Language :: Python :: 3
@@ -79,9 +79,9 @@ magic_hour/resources/v1/image_projects/client_test.py,sha256=5KH4s0vG13SEUkB6pAa
79
79
  magic_hour/resources/v1/image_to_video/README.md,sha256=3_wM8ZtJfZrWMLQnq092v2uIycFvIIjm8tPz7T0A3OY,6273
80
80
  magic_hour/resources/v1/image_to_video/__init__.py,sha256=tY_ABo6evwKQBRSq-M84lNX-pXqmxoozukmrO6NhCgA,126
81
81
  magic_hour/resources/v1/image_to_video/client.py,sha256=fUajB5-kKzT3WC5u7EAeY8_N4k1_r36JmwML4GquQwc,17392
82
- magic_hour/resources/v1/lip_sync/README.md,sha256=2qkWaodE4Au4Z1CU11r7TxxuZdbU1tpeKUr066msmx8,7389
82
+ magic_hour/resources/v1/lip_sync/README.md,sha256=4KSIj9aOz3vgwdMkpe-X6l86j9BvYPl-RhAS51u4bsU,7605
83
83
  magic_hour/resources/v1/lip_sync/__init__.py,sha256=MlKUAoHNSKcuNzVyqNfLnLtD_PsqEn3l1TtVpPC1JqQ,106
84
- magic_hour/resources/v1/lip_sync/client.py,sha256=NbyMKOZ0mUTNODxnWjaBU6y3zRPf772s4rzGnpC1jKE,19529
84
+ magic_hour/resources/v1/lip_sync/client.py,sha256=hFnNps9HSEG6Zi3x56PP5WorbFzm7NnicRiLfR2kZ8o,19769
85
85
  magic_hour/resources/v1/photo_colorizer/README.md,sha256=wql3I3PNIwMZkiCWaQCbMujrtIHW1y4vJ5ce5HX7q0k,3430
86
86
  magic_hour/resources/v1/photo_colorizer/__init__.py,sha256=7rDjkeUzWG5GXw_4RD1XH7Ygy-_0_OUFX99IgE_RVbE,134
87
87
  magic_hour/resources/v1/photo_colorizer/client.py,sha256=mW5VYDmsvU9phtkiY008zarM1CCaWTMTeOTY4zaWDfI,8861
@@ -216,7 +216,7 @@ magic_hour/types/params/v1_video_to_video_create_body.py,sha256=BV52jJcXnOsKaw-M
216
216
  magic_hour/types/params/v1_video_to_video_create_body_assets.py,sha256=XwdoqT1x5ElcWb6qUfmtabNsyaatEsOygB4gJ154y-M,1660
217
217
  magic_hour/types/params/v1_video_to_video_create_body_style.py,sha256=cYiwKRRSJpwHwL_00wxXcXHvym8q1VsT2VBFOPfJNQM,6000
218
218
  magic_hour/types/params/v1_video_to_video_generate_body_assets.py,sha256=j06Y1RKZKwEXW9Zdfhr3Lntx7eDAKpH-k1N1XkKuqPM,915
219
- magic_hour-0.41.0.dist-info/LICENSE,sha256=F3fxj7JXPgB2K0uj8YXRsVss4u-Dgt_-U3V4VXsivNI,1070
220
- magic_hour-0.41.0.dist-info/METADATA,sha256=jGmEEuPpFVOnSSQWc1bGfavWmJ-zc_5tcla3U5rX1Ho,12978
221
- magic_hour-0.41.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
222
- magic_hour-0.41.0.dist-info/RECORD,,
219
+ magic_hour-0.41.1.dist-info/LICENSE,sha256=F3fxj7JXPgB2K0uj8YXRsVss4u-Dgt_-U3V4VXsivNI,1070
220
+ magic_hour-0.41.1.dist-info/METADATA,sha256=NfhzM8eL9AhTGheB9sI6AqbK20KTarBaplwg8sAevFY,12978
221
+ magic_hour-0.41.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
222
+ magic_hour-0.41.1.dist-info/RECORD,,