Spaces:
Running
on
A100
Running
on
A100
limiting to 30 min
Browse files
app.py
CHANGED
@@ -275,7 +275,7 @@ def create_ui(examples_path: str, model_path: str):
|
|
275 |
|
276 |
try:
|
277 |
duration = get_video_duration_seconds(video)
|
278 |
-
if duration >
|
279 |
yield [
|
280 |
"Video must be shorter than 30 minutes",
|
281 |
"",
|
|
|
275 |
|
276 |
try:
|
277 |
duration = get_video_duration_seconds(video)
|
278 |
+
if duration > 1800: # 30 minutes
|
279 |
yield [
|
280 |
"Video must be shorter than 30 minutes",
|
281 |
"",
|