Florent Gbelidji commited on
Commit ·
12e327e
1
Parent(s): 173c60d
Update handler.py
Browse files- handler.py +2 -2
handler.py
CHANGED
|
@@ -5,8 +5,8 @@ from PIL import Image, ImageDraw, ImageFont
|
|
| 5 |
from transformers import LayoutLMv2Processor, LayoutLMv2ForTokenClassification
|
| 6 |
from transformers import pipeline, AutoTokenizer
|
| 7 |
os.system('pip3 install --upgrade cython')
|
| 8 |
-
os.system('
|
| 9 |
-
os.system('
|
| 10 |
|
| 11 |
import detectron2
|
| 12 |
|
|
|
|
| 5 |
from transformers import LayoutLMv2Processor, LayoutLMv2ForTokenClassification
|
| 6 |
from transformers import pipeline, AutoTokenizer
|
| 7 |
os.system('pip3 install --upgrade cython')
|
| 8 |
+
os.system('pip3 install pycocotools')
|
| 9 |
+
os.system('pip3 install -q detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu113/torch1.10/index.html')
|
| 10 |
|
| 11 |
import detectron2
|
| 12 |
|