Spaces:
Paused
Paused
Update web-demos/hugging_face/app.py
Browse files
web-demos/hugging_face/app.py
CHANGED
@@ -83,7 +83,7 @@ def get_frames_from_video(video_input, video_state):
|
|
83 |
fps = cap.get(cv2.CAP_PROP_FPS)
|
84 |
length = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))
|
85 |
|
86 |
-
if length >=
|
87 |
operation_log = [("You uploaded a video with more than 500 frames. Stop the video extraction. Kindly lower the video frame rate to a value below 500. We highly recommend deploying the demo locally for long video processing.", "Error")]
|
88 |
ret, frame = cap.read()
|
89 |
if ret == True:
|
|
|
83 |
fps = cap.get(cv2.CAP_PROP_FPS)
|
84 |
length = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))
|
85 |
|
86 |
+
if length >= 600:
|
87 |
operation_log = [("You uploaded a video with more than 500 frames. Stop the video extraction. Kindly lower the video frame rate to a value below 500. We highly recommend deploying the demo locally for long video processing.", "Error")]
|
88 |
ret, frame = cap.read()
|
89 |
if ret == True:
|