Szczotar93
commited on
Commit
•
044c054
1
Parent(s):
2805990
Update handler.py
Browse files- handler.py +4 -1
handler.py
CHANGED
@@ -6,9 +6,12 @@ import subprocess
|
|
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 |
|
|
|
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("mkdir -p /data", shell = True)
|
13 |
+
subprocess.check_call("chmod 777 /data", shell = True)
|
14 |
+
|
15 |
# subprocess.check_call("apt-get update", shell = True)
|
16 |
# subprocess.check_call("apt-get install git-lfs" ,shell = True)
|
17 |
|