Alexander Slessor
commited on
Commit
•
5c92109
1
Parent(s):
3cc13d1
light refactor
Browse files- .gitignore +2 -1
- handler.py +0 -1
.gitignore
CHANGED
@@ -1 +1,2 @@
|
|
1 |
-
checkpoint-*/
|
|
|
|
1 |
+
checkpoint-*/
|
2 |
+
test_endpoint.py
|
handler.py
CHANGED
@@ -5,7 +5,6 @@ from subprocess import run
|
|
5 |
|
6 |
# install tesseract-ocr and pytesseract
|
7 |
run("apt install -y tesseract-ocr", shell=True, check=True)
|
8 |
-
# run("pip install pytesseract", shell=True, check=True)
|
9 |
|
10 |
# helper function to unnormalize bboxes for drawing onto the image
|
11 |
def unnormalize_box(bbox, width, height):
|
|
|
5 |
|
6 |
# install tesseract-ocr and pytesseract
|
7 |
run("apt install -y tesseract-ocr", shell=True, check=True)
|
|
|
8 |
|
9 |
# helper function to unnormalize bboxes for drawing onto the image
|
10 |
def unnormalize_box(bbox, width, height):
|