tsi-org commited on
Commit
c364141
·
verified ·
1 Parent(s): 58d5391

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -147,8 +147,8 @@ def main():
147
  with st.spinner("Video is being processed..."):
148
  base64Frame, video_filename, video_duration = video_to_frames(uploaded_file, frame_sampling_rate=1)
149
 
150
- if video_duration > 60:
151
- st.error("The video exceeds the maximum allowed duration of 60 seconds.")
152
  return
153
 
154
  final_prompt = f"{prompt} (This video is ONLY {video_duration} seconds long. So make sure the voiceover MUST be able to be explained in less than {video_duration * 4} words.)"
 
147
  with st.spinner("Video is being processed..."):
148
  base64Frame, video_filename, video_duration = video_to_frames(uploaded_file, frame_sampling_rate=1)
149
 
150
+ if video_duration > 120:
151
+ st.error("The video exceeds the maximum allowed duration of 120 seconds.")
152
  return
153
 
154
  final_prompt = f"{prompt} (This video is ONLY {video_duration} seconds long. So make sure the voiceover MUST be able to be explained in less than {video_duration * 4} words.)"