linoyts HF Staff commited on
Commit
3a2ce67
·
verified ·
1 Parent(s): 497e054

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -17
app.py CHANGED
@@ -588,16 +588,17 @@ with gr.Blocks(title="LTX-2.3 IC-LoRA") as demo:
588
 
589
  with gr.Row():
590
  with gr.Column():
591
- conditioning_video = gr.Video(
592
- label="Conditioning Video (IC-LoRA Reference)",
593
- sources=["upload"],
594
- )
595
- input_image = gr.Image(label="Input Image (Optional)", type="pil")
596
- input_audio = gr.Audio(label="Input Audio (Optional)", type="filepath", sources=["upload"])
 
597
  use_video_audio = gr.Checkbox(
598
- label="Use audio from conditioning video",
599
  value=False,
600
- info="If checked, the app extracts the audio track from the uploaded conditioning video and uses it as audio input.",
601
  )
602
  prompt = gr.Textbox(
603
  label="Prompt",
@@ -613,22 +614,24 @@ with gr.Blocks(title="LTX-2.3 IC-LoRA") as demo:
613
  label="IC-LoRA",
614
  choices=list(IC_LORA_OPTIONS.keys()),
615
  value=default_lora_name,
 
616
  )
617
 
618
- with gr.Row():
619
- conditioning_strength = gr.Slider(
620
- label="Conditioning Strength", minimum=0.1, maximum=1.0, value=1.0, step=0.05,
621
- )
622
- with gr.Column():
623
- enhance_prompt = gr.Checkbox(label="Enhance Prompt", value=False)
624
- high_res = gr.Checkbox(label="High Resolution", value=True)
625
- skip_stage_2 = gr.Checkbox(label="Skip Stage 2 (faster, half res)", value=False)
626
-
627
  generate_btn = gr.Button("Generate Video", variant="primary", size="lg")
628
 
629
  with gr.Accordion("Advanced Settings", open=False):
630
  seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, value=42, step=1)
631
  randomize_seed = gr.Checkbox(label="Randomize Seed", value=True)
 
 
 
 
 
 
 
 
 
632
  with gr.Row():
633
  width = gr.Number(label="Width", value=1536, precision=0)
634
  height = gr.Number(label="Height", value=1024, precision=0)
 
588
 
589
  with gr.Row():
590
  with gr.Column():
591
+ with gr.Row():
592
+ conditioning_video = gr.Video(
593
+ label="Conditioning Video (IC-LoRA Reference)",
594
+
595
+ )
596
+ input_image = gr.Image(label="Input Image (Optional)", type="pil")
597
+ input_audio = gr.Audio(label="Input Audio (Optional)", type="filepath")
598
  use_video_audio = gr.Checkbox(
599
+ label="Use audio from reference video",
600
  value=False,
601
+ info="extracts the audio track from the uploaded video",
602
  )
603
  prompt = gr.Textbox(
604
  label="Prompt",
 
614
  label="IC-LoRA",
615
  choices=list(IC_LORA_OPTIONS.keys()),
616
  value=default_lora_name,
617
+ visible=False
618
  )
619
 
620
+
 
 
 
 
 
 
 
 
621
  generate_btn = gr.Button("Generate Video", variant="primary", size="lg")
622
 
623
  with gr.Accordion("Advanced Settings", open=False):
624
  seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, value=42, step=1)
625
  randomize_seed = gr.Checkbox(label="Randomize Seed", value=True)
626
+ with gr.Row():
627
+ conditioning_strength = gr.Slider(
628
+ label="Conditioning Strength", minimum=0.1, maximum=1.0, value=1.0, step=0.05,
629
+ )
630
+ with gr.Column():
631
+ enhance_prompt = gr.Checkbox(label="Enhance Prompt", value=False)
632
+ high_res = gr.Checkbox(label="High Resolution", value=True)
633
+ skip_stage_2 = gr.Checkbox(label="Skip Stage 2 (faster, half res)", value=False)
634
+
635
  with gr.Row():
636
  width = gr.Number(label="Width", value=1536, precision=0)
637
  height = gr.Number(label="Height", value=1024, precision=0)