linoyts HF Staff commited on
Commit
478c791
·
verified ·
1 Parent(s): c736dd7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -7
app.py CHANGED
@@ -538,11 +538,11 @@ with gr.Blocks(css=css, theme=gr.themes.Ocean()) as demo:
538
  v2v_prompt = gr.Textbox(label="Prompt", value="Change the style to cinematic anime", lines=3)
539
  v2v_button = gr.Button("Generate Video-to-Video", variant="primary")
540
 
541
- duration_slider = gr.Slider(
542
- label="Video Duration (seconds)", minimum=0.3, maximum=8.5, value=2, step=0.1,
543
- info="Target video duration (0.3s to 8.5s). Actual frames depend on model constraints (multiple of 8 + 1)."
544
- )
545
- improve_texture_checkbox = gr.Checkbox(label="Improve Texture (multi-scale)", value=True, info="Uses a two-pass generation for better quality, but is slower.")
546
 
547
  with gr.Column(scale=1): # LoRA Gallery and Output
548
  selected_lora_info_markdown = gr.Markdown("No LoRA selected.")
@@ -561,8 +561,13 @@ with gr.Blocks(css=css, theme=gr.themes.Ocean()) as demo:
561
  custom_lora_status_html = gr.HTML(visible=False) # For displaying custom LoRA card
562
  remove_custom_lora_button = gr.Button("Remove Last Added Custom LoRA", visible=False)
563
 
564
- output_video = gr.Video(label="Generated Video", interactive=False)
565
- # output_seed_info = gr.Textbox(label="Seed Used", interactive=False) # Add this to show seed
 
 
 
 
 
566
  # gr.DeepLinkButton()
567
 
568
  with gr.Accordion("Advanced settings", open=False):
 
538
  v2v_prompt = gr.Textbox(label="Prompt", value="Change the style to cinematic anime", lines=3)
539
  v2v_button = gr.Button("Generate Video-to-Video", variant="primary")
540
 
541
+ # duration_slider = gr.Slider(
542
+ # label="Video Duration (seconds)", minimum=0.3, maximum=8.5, value=2, step=0.1,
543
+ # info="Target video duration (0.3s to 8.5s). Actual frames depend on model constraints (multiple of 8 + 1)."
544
+ # )
545
+ # improve_texture_checkbox = gr.Checkbox(label="Improve Texture (multi-scale)", value=True, info="Uses a two-pass generation for better quality, but is slower.")
546
 
547
  with gr.Column(scale=1): # LoRA Gallery and Output
548
  selected_lora_info_markdown = gr.Markdown("No LoRA selected.")
 
561
  custom_lora_status_html = gr.HTML(visible=False) # For displaying custom LoRA card
562
  remove_custom_lora_button = gr.Button("Remove Last Added Custom LoRA", visible=False)
563
 
564
+ with gr.Column(scale=1):
565
+ output_video = gr.Video(label="Generated Video", interactive=False)
566
+ duration_slider = gr.Slider(
567
+ label="Video Duration (seconds)", minimum=0.3, maximum=8.5, value=2, step=0.1,
568
+ info="Target video duration (0.3s to 8.5s). Actual frames depend on model constraints (multiple of 8 + 1)."
569
+ )
570
+ improve_texture_checkbox = gr.Checkbox(label="Improve Texture (multi-scale)", value=True, info="Uses a two-pass generation for better quality, but is slower.")
571
  # gr.DeepLinkButton()
572
 
573
  with gr.Accordion("Advanced settings", open=False):