Spaces:
Running
on
A100
Running
on
A100
limiting to 30 min
Browse files
app.py
CHANGED
@@ -260,7 +260,7 @@ def create_ui(examples_path: str, model_path: str):
|
|
260 |
|
261 |
try:
|
262 |
duration = get_video_duration_seconds(video)
|
263 |
-
if duration >
|
264 |
return [
|
265 |
None,
|
266 |
"Video must be shorter than 30 minutes",
|
|
|
260 |
|
261 |
try:
|
262 |
duration = get_video_duration_seconds(video)
|
263 |
+
if duration > 1800: # 30 minutes
|
264 |
return [
|
265 |
None,
|
266 |
"Video must be shorter than 30 minutes",
|