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