Suburst commited on
Commit
7896f5d
·
verified ·
1 Parent(s): 0d12e7c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -18,6 +18,9 @@ css = """
18
  def show_video():
19
  return "DDMDeepsort1.mp4"
20
 
 
 
 
21
  def process_video(video):
22
  cap = cv2.VideoCapture(video)
23
  fourcc = cv2.VideoWriter_fourcc(*'mp4v')
@@ -71,6 +74,9 @@ The following video is a short animation created by the author using Manim to ex
71
  gr.HTML('<div class="video-container">')
72
  gr.Video(show_video(), label="Your Video")
73
  gr.HTML('</div>')
 
 
 
74
 
75
 
76
 
 
18
  def show_video():
19
  return "DDMDeepsort1.mp4"
20
 
21
+ def show_result_video():
22
+ return "result.mp4"
23
+
24
  def process_video(video):
25
  cap = cv2.VideoCapture(video)
26
  fourcc = cv2.VideoWriter_fourcc(*'mp4v')
 
74
  gr.HTML('<div class="video-container">')
75
  gr.Video(show_video(), label="Your Video")
76
  gr.HTML('</div>')
77
+ gr.HTML('<div class="video-container">')
78
+ gr.Video(show_result_video(), label="result")
79
+ gr.HTML('</div>')
80
 
81
 
82