Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -918,7 +918,6 @@ def _extract_audio_from_video(video_path: str) -> str | None:
|
|
| 918 |
def generate_video(
|
| 919 |
input_image,
|
| 920 |
input_video,
|
| 921 |
-
input_audio = None,
|
| 922 |
prompt: str = "",
|
| 923 |
duration: float = 3,
|
| 924 |
conditioning_strength: float = 0.85,
|
|
@@ -928,6 +927,7 @@ def generate_video(
|
|
| 928 |
randomize_seed: bool = True,
|
| 929 |
height: int = 512,
|
| 930 |
width: int = 768,
|
|
|
|
| 931 |
progress=gr.Progress(track_tqdm=True),
|
| 932 |
):
|
| 933 |
video_preprocess="Pose (DWPose)"
|
|
@@ -1223,7 +1223,6 @@ with gr.Blocks(title="LTX 2.3 Sync", css=css, theme=purple_citrus) as demo:
|
|
| 1223 |
[
|
| 1224 |
"britney-spears-toxic-2004.jpg",
|
| 1225 |
"example_2.mp4",
|
| 1226 |
-
None,
|
| 1227 |
"",
|
| 1228 |
3.4,
|
| 1229 |
0.85,
|
|
@@ -1237,7 +1236,6 @@ with gr.Blocks(title="LTX 2.3 Sync", css=css, theme=purple_citrus) as demo:
|
|
| 1237 |
[
|
| 1238 |
"1 1.jpeg",
|
| 1239 |
"1 (2).mp4",
|
| 1240 |
-
None,
|
| 1241 |
"a man speaking while making hand gestures",
|
| 1242 |
3.5,
|
| 1243 |
0.9,
|
|
@@ -1251,7 +1249,6 @@ with gr.Blocks(title="LTX 2.3 Sync", css=css, theme=purple_citrus) as demo:
|
|
| 1251 |
[
|
| 1252 |
"2 (1).jpeg",
|
| 1253 |
"video-5.mp4",
|
| 1254 |
-
None,
|
| 1255 |
"",
|
| 1256 |
6.8,
|
| 1257 |
0.9,
|
|
@@ -1302,9 +1299,9 @@ with gr.Blocks(title="LTX 2.3 Sync", css=css, theme=purple_citrus) as demo:
|
|
| 1302 |
generate_btn.click(
|
| 1303 |
fn=generate_video,
|
| 1304 |
inputs=[
|
| 1305 |
-
input_image, input_video,
|
| 1306 |
conditioning_strength, enhance_prompt,
|
| 1307 |
-
use_video_audio, seed, randomize_seed, height, width,
|
| 1308 |
],
|
| 1309 |
outputs=[output_video, seed],
|
| 1310 |
)
|
|
|
|
| 918 |
def generate_video(
|
| 919 |
input_image,
|
| 920 |
input_video,
|
|
|
|
| 921 |
prompt: str = "",
|
| 922 |
duration: float = 3,
|
| 923 |
conditioning_strength: float = 0.85,
|
|
|
|
| 927 |
randomize_seed: bool = True,
|
| 928 |
height: int = 512,
|
| 929 |
width: int = 768,
|
| 930 |
+
input_audio = None,
|
| 931 |
progress=gr.Progress(track_tqdm=True),
|
| 932 |
):
|
| 933 |
video_preprocess="Pose (DWPose)"
|
|
|
|
| 1223 |
[
|
| 1224 |
"britney-spears-toxic-2004.jpg",
|
| 1225 |
"example_2.mp4",
|
|
|
|
| 1226 |
"",
|
| 1227 |
3.4,
|
| 1228 |
0.85,
|
|
|
|
| 1236 |
[
|
| 1237 |
"1 1.jpeg",
|
| 1238 |
"1 (2).mp4",
|
|
|
|
| 1239 |
"a man speaking while making hand gestures",
|
| 1240 |
3.5,
|
| 1241 |
0.9,
|
|
|
|
| 1249 |
[
|
| 1250 |
"2 (1).jpeg",
|
| 1251 |
"video-5.mp4",
|
|
|
|
| 1252 |
"",
|
| 1253 |
6.8,
|
| 1254 |
0.9,
|
|
|
|
| 1299 |
generate_btn.click(
|
| 1300 |
fn=generate_video,
|
| 1301 |
inputs=[
|
| 1302 |
+
input_image, input_video, prompt, duration,
|
| 1303 |
conditioning_strength, enhance_prompt,
|
| 1304 |
+
use_video_audio, seed, randomize_seed, height, width,input_audio
|
| 1305 |
],
|
| 1306 |
outputs=[output_video, seed],
|
| 1307 |
)
|