Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -33,13 +33,12 @@ def object_detection():
|
|
33 |
cv2.destroyAllWindows()
|
34 |
|
35 |
|
36 |
-
iface = gr.Interface(
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
)
|
44 |
|
45 |
iface.launch(share=True)
|
|
|
33 |
cv2.destroyAllWindows()
|
34 |
|
35 |
|
36 |
+
iface = gr.Interface(object_detection,
|
37 |
+
gr.Video(),
|
38 |
+
"playable_video",
|
39 |
+
examples=[
|
40 |
+
os.path.join(os.path.abspath(''),
|
41 |
+
"video/video_sample.mp4")],
|
42 |
+
cache_examples=True)
|
|
|
43 |
|
44 |
iface.launch(share=True)
|