Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -67,7 +67,7 @@ def process_video(radio, video, target_language, has_closeup_face):
67
  video_info = ffmpeg.probe(video_path)
68
  video_duration = float(video_info['streams'][0]['duration'])
69
 
70
- if video_duration > 60:
71
  os.remove(video_path) # Delete the resized video
72
  return gr.Error("Video duration exceeds 1 minute. Please upload a shorter video.")
73
 
 
67
  video_info = ffmpeg.probe(video_path)
68
  video_duration = float(video_info['streams'][0]['duration'])
69
 
70
+ if video_duration > 60000:
71
  os.remove(video_path) # Delete the resized video
72
  return gr.Error("Video duration exceeds 1 minute. Please upload a shorter video.")
73