Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,10 @@ from pytesseract import pytesseract
|
|
4 |
import PyPDF2
|
5 |
import enum
|
6 |
import os
|
|
|
|
|
|
|
|
|
7 |
import re
|
8 |
from collections import defaultdict
|
9 |
import folium
|
|
|
4 |
import PyPDF2
|
5 |
import enum
|
6 |
import os
|
7 |
+
# Install Tesseract at runtime
|
8 |
+
if not os.path.exists("/usr/bin/tesseract"):
|
9 |
+
os.system("apt-get update && apt-get install -y tesseract-ocr libtesseract-dev")
|
10 |
+
|
11 |
import re
|
12 |
from collections import defaultdict
|
13 |
import folium
|