florentgbelidji HF staff commited on
Commit
12e327e
1 Parent(s): 173c60d

Update handler.py

Browse files
Files changed (1) hide show
  1. 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('pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI')
9
- os.system('pip install -q detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu113/torch1.10/index.html')
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