meg HF staff commited on
Commit
8b40206
·
verified ·
1 Parent(s): ac98f53

Temporary change to demonstrate transparency Image behavior with gradio.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,7 +31,7 @@ b = os.path.join(os.path.dirname(__file__), "files/eiffel_tower.mp4")
31
  w1 = os.path.join(os.path.dirname(__file__), "files/AI_generated.png")
32
  w2 = os.path.join(os.path.dirname(__file__), "files/hf-logo.png")
33
  w3 = os.path.join(os.path.dirname(__file__), "files/forest_qr_watermarking.png")
34
-
35
 
36
  def generate_video(original_video, watermark):
37
  return gr.Video(original_video, watermark=watermark)
@@ -48,7 +48,7 @@ with gr.Blocks(css=css) as demo:
48
  gr.Markdown("""For more information on watermarking -- what watermarking is, why it's important, and the tools available on Hugging Face --
49
  please check out [our blogpost on AI watermarking](https://huggingface.co/blog/watermarking).""")
50
  gr.Interface(generate_video, [gr.Video(), gr.Image(type='filepath', image_mode="RGBA")], gr.Video(),
51
- examples=[[a, w1], [b, w2], [a, w3]])
52
 
53
  if __name__ == "__main__":
54
  demo.launch()
 
31
  w1 = os.path.join(os.path.dirname(__file__), "files/AI_generated.png")
32
  w2 = os.path.join(os.path.dirname(__file__), "files/hf-logo.png")
33
  w3 = os.path.join(os.path.dirname(__file__), "files/forest_qr_watermarking.png")
34
+ w4 = os.path.join(os.path.dirname(__file__), "files/cheetah1.jpg")
35
 
36
  def generate_video(original_video, watermark):
37
  return gr.Video(original_video, watermark=watermark)
 
48
  gr.Markdown("""For more information on watermarking -- what watermarking is, why it's important, and the tools available on Hugging Face --
49
  please check out [our blogpost on AI watermarking](https://huggingface.co/blog/watermarking).""")
50
  gr.Interface(generate_video, [gr.Video(), gr.Image(type='filepath', image_mode="RGBA")], gr.Video(),
51
+ examples=[[a, w1], [b, w2], [a, w3], [b, w4]])
52
 
53
  if __name__ == "__main__":
54
  demo.launch()