Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def get_frame_count(filepath):
|
|
26 |
video.release()
|
27 |
|
28 |
#LIMITS
|
29 |
-
if frame_count >
|
30 |
frame_count = 24 # limit to 24 frames to avoid cuDNN errors
|
31 |
return gr.update(maximum=frame_count)
|
32 |
|
|
|
26 |
video.release()
|
27 |
|
28 |
#LIMITS
|
29 |
+
if frame_count > 24 :
|
30 |
frame_count = 24 # limit to 24 frames to avoid cuDNN errors
|
31 |
return gr.update(maximum=frame_count)
|
32 |
|