Spaces:
Running
Running
clean up text files
Browse filesSigned-off-by: peter szemraj <[email protected]>
app.py
CHANGED
|
@@ -70,7 +70,8 @@ def convert_PDF(
|
|
| 70 |
Returns:
|
| 71 |
str, the PDF file contents as text
|
| 72 |
"""
|
| 73 |
-
|
|
|
|
| 74 |
global ocr_model
|
| 75 |
st = time.perf_counter()
|
| 76 |
if isinstance(pdf_obj, list):
|
|
|
|
| 70 |
Returns:
|
| 71 |
str, the PDF file contents as text
|
| 72 |
"""
|
| 73 |
+
# clear local text cache
|
| 74 |
+
rm_local_text_files()
|
| 75 |
global ocr_model
|
| 76 |
st = time.perf_counter()
|
| 77 |
if isinstance(pdf_obj, list):
|