Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -116,7 +116,7 @@ def infer(video_in):
|
|
| 116 |
video = VideoFileClip(input_video_path)
|
| 117 |
|
| 118 |
# Get the length of the video in seconds
|
| 119 |
-
video_duration = video.duration
|
| 120 |
print(f"Video duration: {video_duration} seconds")
|
| 121 |
|
| 122 |
# Check if the video duration is more than 10 seconds
|
|
|
|
| 116 |
video = VideoFileClip(input_video_path)
|
| 117 |
|
| 118 |
# Get the length of the video in seconds
|
| 119 |
+
video_duration = int(video.duration)
|
| 120 |
print(f"Video duration: {video_duration} seconds")
|
| 121 |
|
| 122 |
# Check if the video duration is more than 10 seconds
|