Manu Biot
commited on
Commit
·
46abfce
1
Parent(s):
a37aac1
bla
Browse files- 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(
|
| 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("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
|