ahmadtalha commited on
Commit
9af51bf
1 Parent(s): 501d3ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -185,6 +185,7 @@ def process_input(image=None, file=None, audio=None, text="", translateto = "Eng
185
  lang_code = get_language_code(translatefrom)
186
  ocr_processor = OCRProcessor(lang_code)
187
  final_text = text
 
188
  if image is not None:
189
  ocr_prediction = ocr_processor.process_image(image)
190
  for idx in range(len((list(ocr_prediction)[0][1]))):
 
185
  lang_code = get_language_code(translatefrom)
186
  ocr_processor = OCRProcessor(lang_code)
187
  final_text = text
188
+ print("Image :", image)
189
  if image is not None:
190
  ocr_prediction = ocr_processor.process_image(image)
191
  for idx in range(len((list(ocr_prediction)[0][1]))):