Commit ·
ffb1bd6
1
Parent(s): c059aa2
direct output edit video
Browse files
app.py
CHANGED
|
@@ -306,7 +306,8 @@ class VideoCoF_Controller(Wan_Controller):
|
|
| 306 |
cot=True,
|
| 307 |
).videos
|
| 308 |
|
| 309 |
-
|
|
|
|
| 310 |
|
| 311 |
except Exception as e:
|
| 312 |
print(f"Error: {e}")
|
|
@@ -324,7 +325,7 @@ class VideoCoF_Controller(Wan_Controller):
|
|
| 324 |
|
| 325 |
# Save output
|
| 326 |
save_sample_path = self.save_outputs(
|
| 327 |
-
False,
|
| 328 |
)
|
| 329 |
|
| 330 |
# Return input video to display it alongside output if needed?
|
|
|
|
| 306 |
cot=True,
|
| 307 |
).videos
|
| 308 |
|
| 309 |
+
# Keep only the edited segment (drop reasoning/original parts)
|
| 310 |
+
final_video = sample[:, :, -source_frames_slider:, :, :]
|
| 311 |
|
| 312 |
except Exception as e:
|
| 313 |
print(f"Error: {e}")
|
|
|
|
| 325 |
|
| 326 |
# Save output
|
| 327 |
save_sample_path = self.save_outputs(
|
| 328 |
+
False, source_frames_slider, final_video, fps=fps
|
| 329 |
)
|
| 330 |
|
| 331 |
# Return input video to display it alongside output if needed?
|