Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 |
-
|
| 503 |
-
|
| 504 |
-
|
| 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 |
|