KAHRAMAN42 commited on
Commit
c64ebac
·
verified ·
1 Parent(s): 40055b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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
- return output_video
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(),