King-8 commited on
Commit
3740dcd
·
verified ·
1 Parent(s): 84bbd63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -4,6 +4,9 @@ from PIL import Image
4
  import pytesseract
5
  import shutil, os
6
 
 
 
 
7
  cache_dir = os.path.expanduser("~/.cache/huggingface")
8
  if os.path.exists(cache_dir):
9
  shutil.rmtree(cache_dir)
 
4
  import pytesseract
5
  import shutil, os
6
 
7
+ print("Checking tesseract path:", pytesseract.pytesseract.tesseract_cmd)
8
+ print("Does it exist?", os.path.exists(pytesseract.pytesseract.tesseract_cmd))
9
+
10
  cache_dir = os.path.expanduser("~/.cache/huggingface")
11
  if os.path.exists(cache_dir):
12
  shutil.rmtree(cache_dir)