Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -6,7 +6,7 @@ class EndpointHandler:
|
|
6 |
# load model
|
7 |
self.model = SetFitModel.from_pretrained(path)
|
8 |
|
9 |
-
self.id2label = {
|
10 |
|
11 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
12 |
"""
|
|
|
6 |
# load model
|
7 |
self.model = SetFitModel.from_pretrained(path)
|
8 |
|
9 |
+
self.id2label = {0: 'Art', 1: 'Dedicated', 2: 'Domains', 3: 'Gaming', 4: 'General', 5: 'Music', 6: 'Other'}
|
10 |
|
11 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
12 |
"""
|