b2u commited on
Commit
a3aa3ec
·
1 Parent(s): 666a18b

fixing category retrival

Browse files
Files changed (1) hide show
  1. model.py +2 -1
model.py CHANGED
@@ -54,7 +54,8 @@ class BertClassifier(LabelStudioMLBase):
54
  if not choices_tag:
55
  raise ValueError("No Choices tag found in label config")
56
 
57
- self.categories = choices_tag.get('values', [])
 
58
  if not self.categories:
59
  raise ValueError("No categories found in label config")
60
 
 
54
  if not choices_tag:
55
  raise ValueError("No Choices tag found in label config")
56
 
57
+ # Extract labels from the choices tag
58
+ self.categories = choices_tag.get('labels', [])
59
  if not self.categories:
60
  raise ValueError("No categories found in label config")
61