fffiloni commited on
Commit
9cfd94e
1 Parent(s): 16450f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -30,9 +30,9 @@ def get_frame_count(filepath):
30
 
31
  video.release()
32
 
33
- #LIMITS
34
- #if frame_count > 24 :
35
- # frame_count = 24 # limit to 24 frames to avoid cuDNN errors
36
 
37
  return gr.update(maximum=frame_count)
38
 
 
30
 
31
  video.release()
32
 
33
+ LIMITS
34
+ if frame_count > 36 :
35
+ frame_count = 36 # limit to 236 frames to avoid cuDNN errors
36
 
37
  return gr.update(maximum=frame_count)
38