Update app.py
Browse files
app.py
CHANGED
@@ -407,6 +407,19 @@ if __name__ == "__main__":
|
|
407 |
vid_green_out = gr.Video(label="Video green screen")
|
408 |
vid_matte_out = gr.Video(label="Video matte")
|
409 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
410 |
run_button.click(fn=infer, inputs=[
|
411 |
video_in, trim_in, text_prompt, background_prompt], outputs=[vid_bg_out, vid_green_out, vid_matte_out])
|
412 |
|
|
|
407 |
vid_green_out = gr.Video(label="Video green screen")
|
408 |
vid_matte_out = gr.Video(label="Video matte")
|
409 |
|
410 |
+
gr.Examples(
|
411 |
+
fn=infer,
|
412 |
+
examples=[
|
413 |
+
[
|
414 |
+
".examples/example_men_bottle.mp4",
|
415 |
+
10,
|
416 |
+
"the man holding a bottle",
|
417 |
+
"the Sahara desert"
|
418 |
+
]
|
419 |
+
],
|
420 |
+
inputs=[video_in, trim_in, text_prompt, background_prompt],
|
421 |
+
outputs=[vid_bg_out, vid_green_out, vid_matte_out]
|
422 |
+
)
|
423 |
run_button.click(fn=infer, inputs=[
|
424 |
video_in, trim_in, text_prompt, background_prompt], outputs=[vid_bg_out, vid_green_out, vid_matte_out])
|
425 |
|