tsi-org commited on
Commit
ae2d185
·
verified ·
1 Parent(s): 357d274

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -138,8 +138,8 @@ def main():
138
  with st.spinner("Video is being processed..."):
139
  base64Frame, video_filename, video_duration = video_to_frames(uploaded_file, frame_sampling_rate=1)
140
 
141
- if video_duration > 30:
142
- st.error("The video exceeds the maximum allowed duration of 30 seconds.")
143
  return
144
 
145
  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.)"
 
138
  with st.spinner("Video is being processed..."):
139
  base64Frame, video_filename, video_duration = video_to_frames(uploaded_file, frame_sampling_rate=1)
140
 
141
+ if video_duration > 60:
142
+ st.error("The video exceeds the maximum allowed duration of 60 seconds.")
143
  return
144
 
145
  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.)"