Felguk commited on
Commit
f24e405
·
verified ·
1 Parent(s): a531730

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -50,9 +50,6 @@ def is_square_video(video_path):
50
  width = int(video.get(cv2.CAP_PROP_FRAME_WIDTH))
51
  height = int(video.get(cv2.CAP_PROP_FRAME_HEIGHT))
52
 
53
- video.release()
54
- if width != height:
55
- raise gr.Error("Error: the video does not have a square aspect ratio. We currently only support square videos")
56
 
57
  return gr.update(visible=True)
58
 
 
50
  width = int(video.get(cv2.CAP_PROP_FRAME_WIDTH))
51
  height = int(video.get(cv2.CAP_PROP_FRAME_HEIGHT))
52
 
 
 
 
53
 
54
  return gr.update(visible=True)
55