Suburst commited on
Commit
5e49edd
·
verified ·
1 Parent(s): cb9036d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -14,6 +14,9 @@ css = """
14
  }
15
  """
16
 
 
 
 
17
  def process_video(video):
18
  cap = cv2.VideoCapture(video)
19
  fourcc = cv2.VideoWriter_fourcc(*'mp4v')
@@ -58,10 +61,9 @@ with gr.Blocks(css=css) as demo:
58
  """)
59
 
60
  with gr.Row():
61
- with gr.Column():
62
- gr.HTML("<div class="video-container">")
63
- gr.Video(value="DDMDeepsort1.mp4", label="Demo Video", width=720, height=435)
64
- gr.HTML("</div>")
65
 
66
 
67
 
 
14
  }
15
  """
16
 
17
+ def show_video():
18
+ return "DDMDeepsort1.mp4"
19
+
20
  def process_video(video):
21
  cap = cv2.VideoCapture(video)
22
  fourcc = cv2.VideoWriter_fourcc(*'mp4v')
 
61
  """)
62
 
63
  with gr.Row():
64
+ gr.HTML('<div class="video-container">')
65
+ gr.Video(show_video(), label="Your Video")
66
+ gr.HTML('</div>')
 
67
 
68
 
69