Fabrice-TIERCELIN commited on
Commit
176c27f
·
verified ·
1 Parent(s): 4fe59fb
Files changed (1) hide show
  1. app_v2v.py +33 -2
app_v2v.py CHANGED
@@ -597,8 +597,8 @@ with block:
597
  #example_quick_prompts.click(lambda x: x[0], inputs=[example_quick_prompts], outputs=prompt, show_progress=False, queue=False)
598
 
599
  with gr.Row():
600
- start_button = gr.Button(value="Start Generation")
601
- end_button = gr.Button(value="End Generation", interactive=False)
602
 
603
  with gr.Group():
604
  with gr.Row():
@@ -642,6 +642,37 @@ with block:
642
  progress_desc = gr.Markdown('', elem_classes='no-generating-animation')
643
  progress_bar = gr.HTML('', elem_classes='no-generating-animation')
644
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
645
  gr.HTML("""
646
  <div style="text-align:center; margin-top:20px;">Share your results and find ideas at the <a href="https://x.com/search?q=framepack&f=live" target="_blank">FramePack Twitter (X) thread</a></div>
647
  """)
 
597
  #example_quick_prompts.click(lambda x: x[0], inputs=[example_quick_prompts], outputs=prompt, show_progress=False, queue=False)
598
 
599
  with gr.Row():
600
+ start_button = gr.Button(value="Start Generation", variant="primary")
601
+ end_button = gr.Button(value="End Generation", variant="stop", interactive=False)
602
 
603
  with gr.Group():
604
  with gr.Row():
 
642
  progress_desc = gr.Markdown('', elem_classes='no-generating-animation')
643
  progress_bar = gr.HTML('', elem_classes='no-generating-animation')
644
 
645
+ gr.Examples(
646
+ examples = [
647
+ [
648
+ "./img_examples/Example1.mp4", # input_video
649
+ "View of the sea as far as the eye can see, from the seaside, a piece of land is barely visible on the horizon at the middle, the sky is radiant, reflections of the sun in the water, photorealistic, realistic, intricate details, 8k, insanely detailed",
650
+ "", # n_prompt
651
+ 42, # seed
652
+ 1, # batch
653
+ 640, # resolution
654
+ 1, # total_second_length
655
+ 9, # latent_window_size
656
+ 10, # steps
657
+ 1.0, # cfg
658
+ 3.0, # gs
659
+ 0.0, # rs
660
+ 6, # gpu_memory_preservation
661
+ False, # use_teacache
662
+ False, # no_resize
663
+ 16, # mp4_crf
664
+ 5, # num_clean_frames
665
+ default_vae
666
+ ],
667
+ ],
668
+ run_on_click = True,
669
+ fn = process,
670
+ inputs = [input_video, prompt, n_prompt, seed, batch, resolution, total_second_length, latent_window_size, steps, cfg, gs, rs, gpu_memory_preservation, use_teacache, no_resize, mp4_crf, num_clean_frames, vae_batch],
671
+ inputs = [input_video, prompt, n_prompt, seed, batch, resolution, total_second_length, latent_window_size, steps, cfg, gs, rs, gpu_memory_preservation, use_teacache, no_resize, mp4_crf, num_clean_frames, vae_batch],
672
+ outputs = [result_video, preview_image, progress_desc, progress_bar, start_button, end_button],
673
+ cache_examples = True,
674
+ )
675
+
676
  gr.HTML("""
677
  <div style="text-align:center; margin-top:20px;">Share your results and find ideas at the <a href="https://x.com/search?q=framepack&f=live" target="_blank">FramePack Twitter (X) thread</a></div>
678
  """)