From 75ed3f0ecd8956b59832fcd94d5b3a5fab2ad981 Mon Sep 17 00:00:00 2001 From: Dev Aggarwal Date: Wed, 5 Mar 2025 19:59:37 -0800 Subject: [PATCH] fix ocr text not working for input documents in copilot --- recipes/VideoBots.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/VideoBots.py b/recipes/VideoBots.py index 4d0811c44..5aa31b43d 100644 --- a/recipes/VideoBots.py +++ b/recipes/VideoBots.py @@ -969,8 +969,8 @@ def input_translation_step(self, request, user_input, ocr_texts): source_language="auto", target_language="en", ) - for text in ocr_texts: - user_input = f"Exracted Text: {text!r}\n\n{user_input}" + for text in ocr_texts: + user_input = f"Exracted Text: {text!r}\n\n{user_input}" return user_input def build_final_prompt(self, request, response, user_input, model):