emanuelaboros commited on
Commit
c2349bd
·
verified ·
1 Parent(s): 8dd79b5

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -149,7 +149,7 @@ def get_wikipedia_title(qid, language="en"):
149
  class EndpointHandler:
150
  def __init__(self, path: str = None):
151
  # Initialize the NelPipeline with the specified model
152
- self.pipeline = NelPipeline()
153
 
154
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
155
  # Process incoming data
 
149
  class EndpointHandler:
150
  def __init__(self, path: str = None):
151
  # Initialize the NelPipeline with the specified model
152
+ self.pipeline = NelPipeline("impresso-project/nel-mgenre-multilingual")
153
 
154
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
155
  # Process incoming data