Token Classification
GLiNER
PyTorch
English
Manu Biot commited on
Commit
ca90b41
·
1 Parent(s): f6cfce3

Add requirements.txt for endpoint dependencies

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -4,7 +4,7 @@ from typing import Dict, List, Any
4
 
5
  class EndpointHandler():
6
  def __init__(self, path=""):
7
- self.model = GLiNER.from_pretrained("urchade/gliner_multi-v2.1")
8
 
9
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
10
  # get inputs
 
4
 
5
  class EndpointHandler():
6
  def __init__(self, path=""):
7
+ self.model = GLiNER.from_pretrained(path)
8
 
9
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
10
  # get inputs