Commit
·
5585b0a
1
Parent(s):
051d587
Update handler.py
Browse files- handler.py +2 -0
handler.py
CHANGED
@@ -6,7 +6,9 @@ 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 |
|
|
|
10 |
|
11 |
class EndpointHandler():
|
12 |
def __init__(self, path=""):
|
|
|
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 |
|
11 |
+
print(f"DETECTRON2 {detectron2.__version__}")
|
12 |
|
13 |
class EndpointHandler():
|
14 |
def __init__(self, path=""):
|