linoyts HF Staff commited on
Commit
bfc2264
·
verified ·
1 Parent(s): 9c20768

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -9
app.py CHANGED
@@ -445,12 +445,9 @@ def generate_video(gallery_images, mode, prompt, height, width,
445
 
446
  control_modes = """
447
  **3 control modes available:**
448
-
449
- **Reference** Generate a video incorporating elements from input reference images
450
-
451
- **First - Last Frame** Generate a video using first and last frame conditioning defined by input images
452
-
453
- **Random Transitions** Generate a video with intermediate transitions between multiple input images
454
  """
455
 
456
  with gr.Blocks() as demo:
@@ -483,9 +480,9 @@ with gr.Blocks() as demo:
483
 
484
  # Background removal checkbox moved here - right beneath control modes
485
  remove_bg_checkbox = gr.Checkbox(
486
- label="Remove Background (Reference mode only)",
487
  value=False,
488
- info="Automatically remove background from input images when using Reference mode"
489
  )
490
 
491
  prompt_input = gr.Textbox(label="Prompt", value=MODE_PROMPTS["reference"])
@@ -493,7 +490,7 @@ with gr.Blocks() as demo:
493
  minimum=round(MIN_FRAMES_MODEL/FIXED_FPS,1),
494
  maximum=round(MAX_FRAMES_MODEL/FIXED_FPS,1),
495
  step=0.1,
496
- value=2.8,
497
  label="Duration (seconds)",
498
  info=f"Clamped to model's {MIN_FRAMES_MODEL}-{MAX_FRAMES_MODEL} frames at {FIXED_FPS}fps."
499
  )
 
445
 
446
  control_modes = """
447
  **3 control modes available:**
448
+ - **Reference** Generate a video incorporating elements from input reference images
449
+ - **First - Last Frame** Generate a video using first and last frame conditioning defined by input images
450
+ - **Random Transitions** Generate a video with intermediate transitions between multiple input images
 
 
 
451
  """
452
 
453
  with gr.Blocks() as demo:
 
480
 
481
  # Background removal checkbox moved here - right beneath control modes
482
  remove_bg_checkbox = gr.Checkbox(
483
+ label="Remove Background",
484
  value=False,
485
+ info="removes background from input images, enable to prevent unwanted background elements in the generated video"
486
  )
487
 
488
  prompt_input = gr.Textbox(label="Prompt", value=MODE_PROMPTS["reference"])
 
490
  minimum=round(MIN_FRAMES_MODEL/FIXED_FPS,1),
491
  maximum=round(MAX_FRAMES_MODEL/FIXED_FPS,1),
492
  step=0.1,
493
+ value=2,
494
  label="Duration (seconds)",
495
  info=f"Clamped to model's {MIN_FRAMES_MODEL}-{MAX_FRAMES_MODEL} frames at {FIXED_FPS}fps."
496
  )