Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,8 +32,11 @@ def fonk(video_path):
|
|
32 |
frame= cv2.rectangle(frame, (x1, y1), (x2, y2), (0, 255, 0), 2)
|
33 |
output_video= writer.write(frame)
|
34 |
|
35 |
-
|
36 |
-
|
|
|
|
|
|
|
37 |
demo = gr.Interface(fonk,
|
38 |
inputs= gr.Video(),
|
39 |
outputs=gr.Video(),
|
|
|
32 |
frame= cv2.rectangle(frame, (x1, y1), (x2, y2), (0, 255, 0), 2)
|
33 |
output_video= writer.write(frame)
|
34 |
|
35 |
+
|
36 |
+
writer.release()
|
37 |
+
cap.release()
|
38 |
+
return "filename.mp4"
|
39 |
+
|
40 |
demo = gr.Interface(fonk,
|
41 |
inputs= gr.Video(),
|
42 |
outputs=gr.Video(),
|