Update handler.py
Browse files- 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
|