Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
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()
|