Spaces:
Runtime error
Runtime error
ahmadtalha
commited on
Update app.py
Browse files
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=""):
|