joshnguyen commited on
Commit
ee4b3bb
·
1 Parent(s): 1d1d7a2

Update label

Browse files
Files changed (1) hide show
  1. custom_label.py +1 -1
custom_label.py CHANGED
@@ -119,7 +119,7 @@ class CustomLabel(Changeable, Selectable, IOComponent, JSONSerializable):
119
  if self.num_top_classes is not None:
120
  sorted_pred = sorted_pred[: self.num_top_classes]
121
  return {
122
- "label": None,
123
  "confidences": [
124
  {"label": pred[0], "confidence": pred[1]} for pred in sorted_pred
125
  ],
 
119
  if self.num_top_classes is not None:
120
  sorted_pred = sorted_pred[: self.num_top_classes]
121
  return {
122
+ "label": "",
123
  "confidences": [
124
  {"label": pred[0], "confidence": pred[1]} for pred in sorted_pred
125
  ],