pszemraj commited on
Commit
58b2281
1 Parent(s): db092ad

clean up text files

Browse files

Signed-off-by: peter szemraj <peterszemraj@gmail.com>

Files changed (1) hide show
  1. app.py +2 -1
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):