Mantas commited on
Commit
0864e65
·
1 Parent(s): d10d642

Update handler.py

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