alexnasa commited on
Commit
f77572e
·
verified ·
1 Parent(s): 1b4c21e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -499,10 +499,16 @@ def animate_scene(input_video, max_duration_s, edited_frame, rc_str,
499
 
500
  print(f'{session_id} inference started with {rc_str} and duration of {max_duration_s}')
501
 
502
- output_video_path = _animate(
503
- input_video, max_duration_s, edited_frame_png, rc_bool,
504
- pts_by_frame, lbs_by_frame, session_id, progress
505
- )
 
 
 
 
 
 
506
 
507
  final_video_path = os.path.join(output_dir, 'final_result.mp4')
508
 
 
499
 
500
  print(f'{session_id} inference started with {rc_str} and duration of {max_duration_s}')
501
 
502
+ try:
503
+
504
+ output_video_path = _animate(
505
+ input_video, max_duration_s, edited_frame_png, rc_bool,
506
+ pts_by_frame, lbs_by_frame, session_id, progress
507
+ )
508
+ except Exception as e:
509
+ err = str(e).lower()
510
+ print(f"{session_id} failed due to {err}")
511
+ raise
512
 
513
  final_video_path = os.path.join(output_dir, 'final_result.mp4')
514