earlalvarado-pi commited on
Commit
bb2d701
1 Parent(s): bbd6166

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -13,7 +13,7 @@ from typing import Dict, Any
13
 
14
  class EndpointHandler:
15
  def __init__(self, path=""):
16
- self.nlp = spacy.load("./")
17
 
18
  def __call__(self, data: Dict[str, Any]) -> Dict[str, Any]:
19
  text = data.get("text", "")
 
13
 
14
  class EndpointHandler:
15
  def __init__(self, path=""):
16
+ self.nlp = spacy.load(path)
17
 
18
  def __call__(self, data: Dict[str, Any]) -> Dict[str, Any]:
19
  text = data.get("text", "")