ahmadtalha commited on
Commit
ffb2275
1 Parent(s): a3b9f5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -57,7 +57,7 @@ class OCRProcessor:
57
  """
58
  Process a PIL image and return the OCR text.
59
  """
60
- predictions = run_ocr([image], self.langs, self.det_model, self.det_processor, self.rec_model, self.rec_processor)
61
  return predictions[0] # Assuming the first item in predictions contains the desired text
62
 
63
  def process_pdf(self, pdf_path):
 
57
  """
58
  Process a PIL image and return the OCR text.
59
  """
60
+ predictions = run_ocr([image], [self.langs], self.det_model, self.det_processor, self.rec_model, self.rec_processor)
61
  return predictions[0] # Assuming the first item in predictions contains the desired text
62
 
63
  def process_pdf(self, pdf_path):