Update autogpt_platform/backend/backend/blocks/transcribe_video.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Toran Bruce Richards
2025-06-13 13:52:42 +01:00
committed by claude[bot]
parent e7b4f3ff7a
commit 0207fab199

View File

@@ -48,5 +48,8 @@ class TranscribeVideoBlock(Block):
graph_exec_id=graph_exec_id, file=input_data.video_in, return_content=False
)
abs_path = get_exec_file_path(graph_exec_id, local_path)
transcript = self.transcribe(abs_path)
yield "transcription", transcript
try:
transcript = self.transcribe(abs_path)
yield "transcription", transcript
except Exception as e:
yield "error", str(e)