earlalvarado-pi
commited on
Commit
•
c7a97db
1
Parent(s):
8d90324
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -19,7 +19,7 @@ class EndpointHandler:
|
|
19 |
self.nlp = spacy.load(path)
|
20 |
|
21 |
def __call__(self, data: Dict[str, Any]) -> Dict[str, Any]:
|
22 |
-
text = data.get("
|
23 |
doc = self.nlp(text)
|
24 |
entities = [
|
25 |
{"word": ent.text, "entity_group": ent.label_, "score": 1.0}
|
|
|
19 |
self.nlp = spacy.load(path)
|
20 |
|
21 |
def __call__(self, data: Dict[str, Any]) -> Dict[str, Any]:
|
22 |
+
text = data.get("inputs", "")
|
23 |
doc = self.nlp(text)
|
24 |
entities = [
|
25 |
{"word": ent.text, "entity_group": ent.label_, "score": 1.0}
|