goryhon commited on
Commit
7875bb5
·
verified ·
1 Parent(s): 842d69d

Update web-demos/hugging_face/app.py

Browse files
Files changed (1) hide show
  1. web-demos/hugging_face/app.py +1 -1
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 >= 500:
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: