fffiloni commited on
Commit
b7a6e89
1 Parent(s): f4b9351

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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