Skip to content

Commit

Permalink
fix ocr text not working for input documents in copilot
Browse files Browse the repository at this point in the history
  • Loading branch information
devxpy committed Mar 6, 2025
1 parent 6c68b0a commit 75ed3f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipes/VideoBots.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 75ed3f0

Please sign in to comment.