Manu Biot commited on
Commit
8d2f457
·
1 Parent(s): 0de289f
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -5,7 +5,7 @@ from typing import Dict, Any, List
5
  class EndpointHandler:
6
  def __init__(self, path: str = ""):
7
  # Load the spaCy model. Make sure you've added it in requirements.txt
8
- self.nlp = spacy.load("en_core_web_trf")
9
 
10
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
11
  # Accept both 'inputs' and 'text' as valid keys
 
5
  class EndpointHandler:
6
  def __init__(self, path: str = ""):
7
  # Load the spaCy model. Make sure you've added it in requirements.txt
8
+ self.nlp = spacy.load(path)
9
 
10
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
11
  # Accept both 'inputs' and 'text' as valid keys