Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
#11
by
Bellamy66
- opened
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 >
|
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 > 3600:
|
71 |
os.remove(video_path) # Delete the resized video
|
72 |
return gr.Error("Video duration exceeds 1 minute. Please upload a shorter video.")
|
73 |
|