florentgbelidji HF Staff commited on
Commit
02e4833
·
1 Parent(s): 5585b0a

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -0
handler.py CHANGED
@@ -5,6 +5,7 @@ from PIL import Image, ImageDraw, ImageFont
5
  from transformers import LayoutLMv2Processor, LayoutLMv2ForTokenClassification
6
  from transformers import pipeline, AutoTokenizer
7
 
 
8
  os.system('pip install -q detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu113/torch1.10/index.html')
9
  import detectron2
10
 
 
5
  from transformers import LayoutLMv2Processor, LayoutLMv2ForTokenClassification
6
  from transformers import pipeline, AutoTokenizer
7
 
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
  import detectron2
11