Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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):
|