Skip to content

Commit

Permalink
Merge branch 'main' into agemawat/od_cache_ext
Browse files Browse the repository at this point in the history
  • Loading branch information
Advitya17 authored Jul 13, 2023
2 parents 1901dbc + f3d8cbb commit dac1bc2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def predict(self, X):
predictions = self.predictions[index]
if self.task_type == ModelTask.MULTILABEL_TEXT_CLASSIFICATION:
return predictions
if self.classes is not None:
if self.classes is not None and isinstance(predictions[0], int):
predictions = [self.classes[y] for y in predictions]
return predictions

Expand Down

0 comments on commit dac1bc2

Please sign in to comment.