product2204 commited on
Commit
9e4adf6
1 Parent(s): c668906

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -112,7 +112,7 @@ def process_video_paragraph(text):
112
  video_clips.append(video_clip)
113
  else:
114
  print("No video segments to concatenate.")
115
- if clips:
116
  final_video = concatenate_videoclips(clips,method="compose")
117
  final_output_path = "final_concatenated_video.mp4"
118
  final_video.write_videofile(final_output_path, codec="libx264", fps=24)
 
112
  video_clips.append(video_clip)
113
  else:
114
  print("No video segments to concatenate.")
115
+ if video_clips:
116
  final_video = concatenate_videoclips(clips,method="compose")
117
  final_output_path = "final_concatenated_video.mp4"
118
  final_video.write_videofile(final_output_path, codec="libx264", fps=24)