Commit
•
2805990
1
Parent(s):
327def7
Update handler.py
Browse files- handler.py +6 -6
handler.py
CHANGED
@@ -6,15 +6,15 @@ import subprocess
|
|
6 |
import os
|
7 |
|
8 |
# install tesseract-ocr and pytesseract
|
9 |
-
|
10 |
# run("pip install pytesseract", shell=True, check=True)
|
11 |
|
12 |
-
subprocess.check_call("apt-get update", shell = True)
|
13 |
-
subprocess.check_call("apt-get install git-lfs" ,shell = True)
|
14 |
|
15 |
-
subprocess.check_call("mkdir -p /var/lib/dpkg", shell = True)
|
16 |
-
subprocess.check_call("id",shell = True)
|
17 |
-
subprocess.check_call("apt-get install tesseract-ocr -y", shell=True)
|
18 |
|
19 |
# os.system('chmod 777 /tmp')
|
20 |
# os.system('apt-get update -y')
|
|
|
6 |
import os
|
7 |
|
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("apt-get update", shell = True)
|
13 |
+
# subprocess.check_call("apt-get install git-lfs" ,shell = True)
|
14 |
|
15 |
+
# subprocess.check_call("mkdir -p /var/lib/dpkg", shell = True)
|
16 |
+
# subprocess.check_call("id",shell = True)
|
17 |
+
# subprocess.check_call("apt-get install tesseract-ocr -y", shell=True)
|
18 |
|
19 |
# os.system('chmod 777 /tmp')
|
20 |
# os.system('apt-get update -y')
|