Commit
•
6e228b7
1
Parent(s):
c3f97df
Update handler.py
Browse files- handler.py +2 -0
handler.py
CHANGED
@@ -8,6 +8,8 @@ import os
|
|
8 |
# install tesseract-ocr and pytesseract
|
9 |
# run("apt install -y tesseract-ocr", shell=True, check=True)
|
10 |
# run("pip install pytesseract", shell=True, check=True)
|
|
|
|
|
11 |
subprocess.check_call("id",shell = True)
|
12 |
subprocess.check_call("apt-get install tesseract-ocr -y", shell=True)
|
13 |
|
|
|
8 |
# install tesseract-ocr and pytesseract
|
9 |
# run("apt install -y tesseract-ocr", shell=True, check=True)
|
10 |
# run("pip install pytesseract", shell=True, check=True)
|
11 |
+
|
12 |
+
subprocess.check_call("mkdir -p /var/lib/dpkg", shell = True)
|
13 |
subprocess.check_call("id",shell = True)
|
14 |
subprocess.check_call("apt-get install tesseract-ocr -y", shell=True)
|
15 |
|