Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 |
|