Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -343,6 +343,8 @@ def animate_scene(input_video, max_duration_s, edited_frame, rc_str, session_id
|
|
| 343 |
else:
|
| 344 |
final_video_path = output_video_path
|
| 345 |
|
|
|
|
|
|
|
| 346 |
return final_video_path, pose_video, bg_video, mask_video, face_video
|
| 347 |
|
| 348 |
css = """
|
|
@@ -441,6 +443,7 @@ def cleanup(request: gr.Request):
|
|
| 441 |
sid = request.session_hash
|
| 442 |
|
| 443 |
if sid:
|
|
|
|
| 444 |
d1 = os.path.join(os.environ["PROCESSED_RESULTS"], sid)
|
| 445 |
shutil.rmtree(d1, ignore_errors=True)
|
| 446 |
|
|
|
|
| 343 |
else:
|
| 344 |
final_video_path = output_video_path
|
| 345 |
|
| 346 |
+
print(f"task for {session_id} finalised")
|
| 347 |
+
|
| 348 |
return final_video_path, pose_video, bg_video, mask_video, face_video
|
| 349 |
|
| 350 |
css = """
|
|
|
|
| 443 |
sid = request.session_hash
|
| 444 |
|
| 445 |
if sid:
|
| 446 |
+
print(f"{sid} left")
|
| 447 |
d1 = os.path.join(os.environ["PROCESSED_RESULTS"], sid)
|
| 448 |
shutil.rmtree(d1, ignore_errors=True)
|
| 449 |
|