meg HF staff commited on
Commit
50ae3b1
1 Parent(s): a2d5d0e

Changing where files are found.

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,10 +1,10 @@
1
  import gradio as gr
2
  import os
3
 
4
- a = os.path.join(os.path.dirname(__file__), "files/a.mp4") # Video
5
- b = os.path.join(os.path.dirname(__file__), "files/b.mp4") # Video
6
- w1 = os.path.join(os.path.dirname(__file__), "files/w1.jpg") # Watermark
7
- w2 = os.path.join(os.path.dirname(__file__), "files/w2.png") # Watermark
8
 
9
  def generate_video(original_video, watermark_file):
10
  return gr.Video(a, watermark_file=watermark_file)
 
1
  import gradio as gr
2
  import os
3
 
4
+ a = "demos/video_component/files/a.mp4" # Video
5
+ b = "demos/video_component/files/b.mp4" # Video
6
+ w1 = "demos/video_component/files/w1.jpg" # Watermark
7
+ w2 = "demos/video_component/files/w2.png" # Watermark
8
 
9
  def generate_video(original_video, watermark_file):
10
  return gr.Video(a, watermark_file=watermark_file)