linoyts HF Staff commited on
Commit
071fba8
·
verified ·
1 Parent(s): 83d7608

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -918,19 +918,19 @@ def _extract_audio_from_video(video_path: str) -> str | None:
918
  def generate_video(
919
  input_image,
920
  input_video,
921
- input_audio,
922
- prompt: str,
923
- duration: float,
924
- conditioning_strength: float,
925
- enhance_prompt: bool,
926
- use_video_audio: bool,
927
- seed: int,
928
- randomize_seed: bool,
929
- height: int,
930
- width: int,
931
- video_preprocess: str ="Pose (DWPose)",
932
  progress=gr.Progress(track_tqdm=True),
933
  ):
 
934
  try:
935
  torch.cuda.reset_peak_memory_stats()
936
  current_seed = random.randint(0, MAX_SEED) if randomize_seed else int(seed)
@@ -1285,7 +1285,7 @@ with gr.Blocks(title="LTX 2.3 Sync", css=css, theme=purple_citrus) as demo:
1285
  fn=generate_video,
1286
  inputs=[
1287
  input_image, input_video, input_audio, prompt, duration,
1288
- conditioning_strength, video_preprocess, enhance_prompt,
1289
  use_video_audio, seed, randomize_seed, height, width,
1290
  ],
1291
  outputs=[output_video, seed],
 
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,
925
+ enhance_prompt: bool = True,
926
+ use_video_audio: bool = True,
927
+ seed: int = 42,
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)"
934
  try:
935
  torch.cuda.reset_peak_memory_stats()
936
  current_seed = random.randint(0, MAX_SEED) if randomize_seed else int(seed)
 
1285
  fn=generate_video,
1286
  inputs=[
1287
  input_image, input_video, input_audio, prompt, duration,
1288
+ conditioning_strength, enhance_prompt,
1289
  use_video_audio, seed, randomize_seed, height, width,
1290
  ],
1291
  outputs=[output_video, seed],