Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -233,8 +233,8 @@ def main(args):
|
|
233 |
|
234 |
# base64_lipsync_video = base64.b64encode(video_content).decode('utf-8')
|
235 |
|
236 |
-
|
237 |
-
|
238 |
|
239 |
app.config['temp_response'] = base64_video
|
240 |
app.config['final_video_path'] = temp_file_path
|
|
|
233 |
|
234 |
# base64_lipsync_video = base64.b64encode(video_content).decode('utf-8')
|
235 |
|
236 |
+
video_clip = mp.VideoFileClip(temp_file_path)
|
237 |
+
duration = video_clip.duration
|
238 |
|
239 |
app.config['temp_response'] = base64_video
|
240 |
app.config['final_video_path'] = temp_file_path
|