Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 >
|
142 |
-
st.error("The video exceeds the maximum allowed duration of
|
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.)"
|