mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
fix(blocks): handle relative video path
This commit is contained in:
committed by
claude[bot]
parent
f6c2d519e1
commit
e7b4f3ff7a
@@ -75,6 +75,9 @@ class EditVideoByTextBlock(Block):
|
||||
output_path = self.edit_video(
|
||||
abs_path, input_data.transcription, input_data.split_at
|
||||
)
|
||||
rel_output = os.path.relpath(output_path, get_exec_file_path(graph_exec_id, ""))
|
||||
yield "video", rel_output
|
||||
if os.path.isabs(output_path):
|
||||
output_path = os.path.relpath(
|
||||
output_path, get_exec_file_path(graph_exec_id, "")
|
||||
)
|
||||
yield "video", output_path
|
||||
yield "transcription", input_data.transcription
|
||||
|
||||
Reference in New Issue
Block a user