mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-30 03:00:41 -04:00
Update autogpt_platform/backend/backend/blocks/transcribe_video.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
committed by
claude[bot]
parent
e7b4f3ff7a
commit
0207fab199
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user