Commit
•
4a51a9f
1
Parent(s):
b888efb
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -5,7 +5,7 @@ from PIL import Image, ImageDraw, ImageFont
|
|
5 |
from transformers import LayoutLMv2Processor, LayoutLMv2ForTokenClassification
|
6 |
from transformers import pipeline, AutoTokenizer
|
7 |
|
8 |
-
os.system('apt-get install gcc
|
9 |
os.system('pip3 install pycocotools')
|
10 |
os.system('pip3 install -q detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu113/torch1.10/index.html')
|
11 |
|
|
|
5 |
from transformers import LayoutLMv2Processor, LayoutLMv2ForTokenClassification
|
6 |
from transformers import pipeline, AutoTokenizer
|
7 |
|
8 |
+
os.system('apt-get install gcc -y')
|
9 |
os.system('pip3 install pycocotools')
|
10 |
os.system('pip3 install -q detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu113/torch1.10/index.html')
|
11 |
|