Mantas commited on
Commit
ab5a823
1 Parent(s): bec438c

Update handler.py

Browse files
Files changed (1) hide show
  1. 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 = {{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
  """
 
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
  """