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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -64,7 +64,7 @@ class OCRProcessor:
64
  """
65
  Process a PDF file and return the OCR text.
66
  """
67
- predictions = run_ocr([pdf_path], self.langs, self.det_model, self.det_processor, self.rec_model, self.rec_processor)
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=""):
 
64
  """
65
  Process a PDF file and return the OCR text.
66
  """
67
+ predictions = run_ocr([pdf_path], [self.langs], self.det_model, self.det_processor, self.rec_model, self.rec_processor)
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=""):