Suburst commited on
Commit
bd0d2bb
·
verified ·
1 Parent(s): eaf8aab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,5 +1,7 @@
1
  import gradio as gr
2
  import cv2
 
 
3
 
4
  def process_video(video):
5
  # 打开视频文件
@@ -21,5 +23,5 @@ def process_video(video):
21
  out.release()
22
  return 'output.mp4'
23
 
24
- demo = gr.Interface(fn=process_video, inputs="video", outputs="video")
25
  demo.launch()
 
1
  import gradio as gr
2
  import cv2
3
+ from Yolov5-Deepsort.demo import app_main
4
+
5
 
6
  def process_video(video):
7
  # 打开视频文件
 
23
  out.release()
24
  return 'output.mp4'
25
 
26
+ demo = gr.Interface(fn=app_main, inputs="video", outputs="video")
27
  demo.launch()