ahmadtalha commited on
Commit
ebdf05f
·
verified ·
1 Parent(s): 7b35dd3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -68,6 +68,7 @@ class OCRProcessor:
68
  return predictions[0] # Assuming the first item in predictions contains the desired text
69
 
70
  def process_input(image=None, file=None, audio=None, text=""):
 
71
  final_text = text
72
  if image is not None:
73
  final_text += "\n" + ocr_processor.process_image(image)
 
68
  return predictions[0] # Assuming the first item in predictions contains the desired text
69
 
70
  def process_input(image=None, file=None, audio=None, text=""):
71
+ ocr_processor = OCRProcessor()
72
  final_text = text
73
  if image is not None:
74
  final_text += "\n" + ocr_processor.process_image(image)