Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,9 +30,9 @@ def get_frame_count(filepath):
|
|
| 30 |
|
| 31 |
video.release()
|
| 32 |
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 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 |
|