GrayShine commited on
Commit
bdf0bc5
β€’
1 Parent(s): ee503e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -406,6 +406,15 @@ with gr.Blocks() as demo:
406
  with gr.Column(scale=0.5, visible=True) as video_upload:
407
  output_video = gr.Video(interactive=False, include_audio=True, elem_id="θΎ“ε‡Ίηš„θ§†ι’‘")
408
  clear = gr.Button("Restart")
 
 
 
 
 
 
 
 
 
409
  tcfg_scale = scfg_scale
410
  run.click(gen_or_pre, [text_input, image_input, scfg_scale, tcfg_scale, img_cfg_scale, preframe_input, diffusion_step], [output_video])
411
 
 
406
  with gr.Column(scale=0.5, visible=True) as video_upload:
407
  output_video = gr.Video(interactive=False, include_audio=True, elem_id="θΎ“ε‡Ίηš„θ§†ι’‘")
408
  clear = gr.Button("Restart")
409
+
410
+ ex = gr.Examples(
411
+ examples = [["Underwater environment cosmetic bottles", None, 7.5, 7.5, None, "./input/i2v/Underwater_environment_cosmetic_bottles.png", 100],
412
+ fn = infer,
413
+ inputs = [text_input, image_input, scfg_scale, tcfg_scale, img_cfg_scale, preframe_input, diffusion_step],
414
+ outputs=[output_video],
415
+ cache_examples=False
416
+ )
417
+
418
  tcfg_scale = scfg_scale
419
  run.click(gen_or_pre, [text_input, image_input, scfg_scale, tcfg_scale, img_cfg_scale, preframe_input, diffusion_step], [output_video])
420