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