shamaayan commited on
Commit
2985861
1 Parent(s): 53a50c4

token-classification

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -4,7 +4,7 @@ from transformers import pipeline
4
 
5
  class EndpointHandler:
6
  def __init__(self, path=""):
7
- self.pipeline = pipeline("text-classification",model=path)
8
 
9
  def __call__(self, data: Dict[str, Any]) -> Dict[str, Any]:
10
  """
 
4
 
5
  class EndpointHandler:
6
  def __init__(self, path=""):
7
+ self.pipeline = pipeline("token-classification", model=path)
8
 
9
  def __call__(self, data: Dict[str, Any]) -> Dict[str, Any]:
10
  """