dagloop5 commited on
Commit
972c160
·
verified ·
1 Parent(s): fb77fcd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -6
app.py CHANGED
@@ -43,8 +43,8 @@ import torch
43
  torch._dynamo.config.suppress_errors = True
44
  torch._dynamo.config.disable = True
45
 
46
- import spaces
47
  import gradio as gr
 
48
  import numpy as np
49
  from huggingface_hub import hf_hub_download, snapshot_download
50
 
@@ -266,13 +266,21 @@ RESOLUTIONS = {
266
  def get_duration(
267
  prompt: str,
268
  negative_prompt: str,
 
269
  duration: float,
 
 
270
  height: int,
271
  width: int,
272
- num_frames: int,
273
  enhance_prompt: bool,
274
- video_cfg: float,
275
- audio_cfg: float,
 
 
 
 
 
 
276
  progress,
277
  ) -> int:
278
  """
@@ -497,7 +505,7 @@ css = """
497
  .progress-text {color: white}
498
  """
499
 
500
- with gr.Blocks(title="LTX-2.3 Two-Stage HQ Video Generation", css=css) as demo:
501
  gr.Markdown("# LTX-2.3 Two-Stage HQ Video Generation")
502
  gr.Markdown(
503
  "High-quality text/image-to-video generation using the dev model + distilled LoRA. "
@@ -720,4 +728,9 @@ with gr.Blocks(title="LTX-2.3 Two-Stage HQ Video Generation", css=css) as demo:
720
  # =============================================================================
721
 
722
  if __name__ == "__main__":
723
- demo.queue().launch(mcp_server=True)
 
 
 
 
 
 
43
  torch._dynamo.config.suppress_errors = True
44
  torch._dynamo.config.disable = True
45
 
 
46
  import gradio as gr
47
+ import spaces
48
  import numpy as np
49
  from huggingface_hub import hf_hub_download, snapshot_download
50
 
 
266
  def get_duration(
267
  prompt: str,
268
  negative_prompt: str,
269
+ input_image,
270
  duration: float,
271
+ seed: int,
272
+ randomize_seed: bool,
273
  height: int,
274
  width: int,
 
275
  enhance_prompt: bool,
276
+ video_cfg_scale: float,
277
+ video_stg_scale: float,
278
+ video_rescale_scale: float,
279
+ video_a2v_scale: float,
280
+ audio_cfg_scale: float,
281
+ audio_stg_scale: float,
282
+ audio_rescale_scale: float,
283
+ audio_v2a_scale: float,
284
  progress,
285
  ) -> int:
286
  """
 
505
  .progress-text {color: white}
506
  """
507
 
508
+ with gr.Blocks(title="LTX-2.3 Two-Stage HQ Video Generation") as demo:
509
  gr.Markdown("# LTX-2.3 Two-Stage HQ Video Generation")
510
  gr.Markdown(
511
  "High-quality text/image-to-video generation using the dev model + distilled LoRA. "
 
728
  # =============================================================================
729
 
730
  if __name__ == "__main__":
731
+ demo.queue().launch(
732
+ theme=gr.themes.Citrus(),
733
+ css=css,
734
+ mcp_server=True,
735
+ share=True,
736
+ )